Countrow crossjoin

pser

New Member
Joined
Apr 20, 2005
Messages
11
Hi,

After using several hours now on trying to solve a dax formula, I now try to post my challenge here. I am new to DAX and trying hard to get around. I have three dimension: Fact, StartDate and EndDate. I want to count number of occurence of field 'fact'[Product] where the field 'fact'[Product created date] is between 'StartDate'[date] and 'EndDate'[date].

My initial thought was
Number of product:=CALCULATE(COUNTROWS('fact'[Product]),FILTER('Fact','StartDate'[Date]>'Fakta'[Product Created Date] && '****tDato'[Date]<'Fakta'[Product Created Date]))

I believe my challenge is the filer where I am trying to filter a dimension using a field from two other dimension, so I need some cross join. I know it is odd having two date dimension, but that is the reality I have to work with.

Any suggestion on next move would be appreciated
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I see I have some typing error in the formula, correct formula is: Number of product:=CALCULATE(COUNTROWS('fact'[Product]),FILTER('Fact','StartDate'[Date]>'Fakta'[Product Created Date] && 'EndDate'[Date]<'Fact'[Product Created Date]))
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,612
Members
452,661
Latest member
Nonhle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top