Forum Discussion
kirwanm1
9 years agoFrequent Visitor
Distinct Count based on max value
Hey Everyone, I'm having a little trouble with filtering by the maximum value of a month no. and wondering if anyone knows where I'm going wrong. I have the following formula Charities (Month...
- 9 years ago
Edited
Hi kirwanm1,Try this DAX:
Charities (Monthly) = CALCULATE(DISTINCTCOUNT(donation_event[recipient_id]), FILTER(donation_event,donation_event[Week No.]=max(donation_event[Week No.])))
There might some braces missing, just correct that, it should work.
Thanks !!!
prateekraina
9 years agoMemorable Member
Edited
Hi kirwanm1,
Try this DAX:
Charities (Monthly) = CALCULATE(DISTINCTCOUNT(donation_event[recipient_id]), FILTER(donation_event,donation_event[Week No.]=max(donation_event[Week No.])))
There might some braces missing, just correct that, it should work.
Thanks !!!
kirwanm1
9 years agoFrequent Visitor
Thanks. That works perfectly!
- prateekraina9 years agoMemorable Member
Welcome kirwanm1
Kindly like the post if you think it has solved your problem :)