Forum Discussion
How to write this Condition in Power BI
- 8 years ago
It is working and I am accepting it as a solution however if you could tell me any other simpler way then it would be great as it seems a lot confusing.
Perhaps something along the lines of:
MyMax = CALCULATE(MAX(Table([Product]),FILTER(Table,MAXX(Table,COUNT([Quotes])))
- iamprajot8 years ago
Responsive Resident
This is exactly what I am using and it seems very feasible but it is not giving desired results always.
I am using slicers/filters and it ives correct results for some and incorrect result for the rest.
I don't know on what basis it is giving rubbish results.
- Greg_Deckler8 years ago
Community Champion
Could be that you need to add an ALL or ALLEXCEPT clause or something along those lines. Can you post some sample data and description of where you are seeing the issue?
- iamprajot8 years ago
Responsive Resident
You know how the world works, I can't share the exact data but sure I will replicate the thing from Northwind Database and share soon.