The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I have this table:
Company Count Rank
A 23 1
B 10 2
C 5 3
D 2 4
And with this DAX code works just fine
Company Count Country Rank
A 23 US 1
B 10 UK 2
C 5 AUS 1
D 2 ARG 4
How i should develop this my DAX code in order to obtain a Rank like mas first table above.?
Best
Solved! Go to Solution.
Hello all,
Finally i've solved that way:
Hello Ibendlin,
Company and Country: Columns
Count and Rank: Measures
Best
Hello all,
Finally i've solved that way:
** EDIT: I realize this doesnt exactly answer your question, but this may help someone else stumbling upon this post 🙂
You could try making a string concatenation of the two Rank Columns, then sort those alphabetically.
Is "Count" a column or a measure? Do you want the rank as a column or as a measure?
User | Count |
---|---|
5 | |
2 | |
2 | |
2 | |
2 |
User | Count |
---|---|
11 | |
7 | |
5 | |
4 | |
4 |