Forum Discussion
Using FILTER with SUMX & DISTINCT
- 9 years ago
Hey,
I just figured it out.
CALCULATE(SUMX(DISTINCT('Event Details'[Event Category (City)]),Master[Avg Cost]),FILTER(Master,Master[Decision Name]="Admitted")
The problem was that there is a cost associated against each denied item as well so the previous function returned a sum off all positives and negative returns wherein I only wanted positive returns.
Hey,
I just figured it out.
CALCULATE(SUMX(DISTINCT('Event Details'[Event Category (City)]),Master[Avg Cost]),FILTER(Master,Master[Decision Name]="Admitted")
The problem was that there is a cost associated against each denied item as well so the previous function returned a sum off all positives and negative returns wherein I only wanted positive returns.
Hi Smritide,
Congratulations, you resolved the problem by yourself, please mark the solution as workaround, so that more people will benefit from here.
Best Regards,
Angelia