Forum Discussion
love
8 years agoHelper I
How to return min value for different groups of data
Hello. I am working with a set of data simliar to this: TASK CONFIG ID EXPECTED OUTPUT
Task A Config A 1 1
Task A Config A 2 1
Task A Config A 3 1
Task A Config B 4 4
Task A ...
- 8 years ago
HI love
Try this
Column = CALCULATE ( MIN ( TableName[ID] ), ALLEXCEPT ( TableName, TableName[TASK], TableName[CONFIG] ) )
Zubair_Muhammad
8 years agoCommunity Champion
love
8 years agoHelper I
Both of your suggested solutions perfectly meet the requirements in my OP, thank you very much for the uncomplicated and elegand suggestions!
I ended up going for the DAX solution because if I use the "Group by" solution in the query editor the grouping actually removes all lines that do not have the MIN(ID) which is not what I want but I see that I did not make that very clear in my OP.
Thanks again! :smileyhappy: