Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Because there are multiple dates within the table I must use the USERELATIONSHIP dax. Here is what I have:
Solved! Go to Solution.
Hi there!
I would be like this:
CALCULATE(
[OE]
DATESYTD( 'Calendar'[Date] ),
USERELATIONSHIP( 'Calendar'[Date], Sheet2[CREATE_DATE] )
)
Let me know if that helps!
Hi there!
I would be like this:
CALCULATE(
[OE]
DATESYTD( 'Calendar'[Date] ),
USERELATIONSHIP( 'Calendar'[Date], Sheet2[CREATE_DATE] )
)
Let me know if that helps!
That did it, thank you! How could I enter USERELATIONSHIP in this DAX?
Just add it as another argument of your calculate expression, as it will enable the indicated relationship for the duration of the calculation. Should be like this:
CALCULATE (
SUM ( 'Sheet2'[ORDER_QTY] ),
FILTER (
ALLSELECTED ( 'Calendar'[Date] ),
ISONORAFTER ( 'Calendar'[Date], MAX ( 'Calendar'[Date] ), DESC )
),
USERELATIONSHIP ( 'Calendar'[Date], Sheet2[CREATE_DATE] )
)
| User | Count |
|---|---|
| 50 | |
| 41 | |
| 32 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 72 | |
| 37 | |
| 27 | |
| 24 |