Forum Discussion
Creating a new table from DAX displaying only highest values in a category
- Anonymous6 years ago
I had created a small pbix to play around but now I closed pbi as I thought the problem was solved, so I can't test but if the previous formula was
FilteredTable = SUMMARIZE(filter(YourTable;YourTable[Included]="Yes");YourTable[Area];YourTable[Score];"Max personid";Max(YourTable[Personid]))and you need also to group for person, should be
FilteredTable = SUMMARIZE(filter(YourTable;YourTable[Included]="Yes");YourTable[PersonId]YourTable[Area];YourTable[Score];"Max ID";Max(YourTable[ID]))
Sorry I don't think I'm being very clear. "Person 1" is the same person and against each person is a set of results each with an ID - your previous solution is very close to what I need, but I need to be able to disregard ties within a group by using an ID field (let's say it's an ID of the scores) or index column. i.e. identical scores in the same series with the same type and against the same person are calculated 'Y' for the highest ID.
| ID | Series | Type | Score | Included | |
| Person 1 | 8003 | A | A | 5 | Y |
| Person 1 | 8002 | A | A | 5 | N |
I hope that makes sense
Thanks again
can you show what is the expected result? It's easier than going iteratively 🙂