Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi all,
Quite simple issue : I'm looking for a way to get MIN(columnA) knowing that column has been sorted by another columnB.
columnA data type = Text
Currently the MIN() function give me the minimum value with values beginning by "A"..
Thanks !
Solved! Go to Solution.
Multiple ways to do this. Easiest way is to find the min order and get the Word for the min order:
Min Word = VAR MinOrder = MIN ( 'Table'[Order] ) RETURN CALCULATE ( MIN ( 'Table'[Words] ), 'Table'[Order] = MinOrder )
Hi @Anonymous,
What's the expected result? Maybe share a sample too.
Best Regards,
Dale
Here is a data table :
I sorted the column "Words" by the column "Order" :
I'd like to get in DAX : MIN(Words) = "What" instead of "A".
I wonder if the DAX logic could respect the sort order I set previously.
Multiple ways to do this. Easiest way is to find the min order and get the Word for the min order:
Min Word = VAR MinOrder = MIN ( 'Table'[Order] ) RETURN CALCULATE ( MIN ( 'Table'[Words] ), 'Table'[Order] = MinOrder )
Thanks !!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |