Forum Discussion
Power BI DAX
- 4 years ago
Hi Learner_SG ,
I got it. Here's my solution.
1.Create a check measure.
Check = IF(MAX('Sheet4'[Parsed_Date])=TODAY()-7,1)Put the measure in the visual filter and let the value is 1.
2. Create a rank measure.
Rank = RANKX ( FILTER ( ALL ( 'Sheet4' ), 'Sheet4'[Parsed_Date] = TODAY () - 7 ), CALCULATE ( SUM ( 'Sheet4'[WC Water Consumption(mL)] ) ), , DESC, DENSE )Put the measure in the visual filter and let the value <=4, get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi v-yanjiang-msft , thanks for the help. I would like to ask for one more favour which I had highlighted yesterday. My rank measure seems to be not working . I checked the dates which seems to be correct. below is the screenshot. with all the ranks showing 1.is it possible for you to find what might be the error at a glance?
Hi Learner_SG ,
In your formula, for the below condition, there will return no date, as no date will be both 2022/3/9 and 2022/3/10.
Modify it to
'measurement'[Parsed_Date]>=TODAY()-9 && 'measurement'[Parsed_Date]<=TODAY()-8
Best Regards,
Community Support Team _ kalyj