Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello guys,
I need some help with a rank column
This is what I have:
I need to rank rpr column inside every rpf value
rpf is a report id and every rpr is a sample inside the report. I need to sort the samples (first, second, third ..... ). the blanks should be sample 0
I need to reach this result:
For every rpf value the rank should restart following the same logic:
rpr = blank -> 0
rank by rpr ascending
Could someone pleasae help me?
Thanks,
Thiago Duarte
Solved! Go to Solution.
Hi @ThiagoDuarte ,
How about this:
I used the following code to create a calculated column:
TomsRankColumn = RANKX ( FILTER ( Table, Table[rpf] = EARLIER ( Table[rpf] ) ), Table14[rpr], , ASC, DENSE ) - 1
Does this work for you? 🙂
/Tom
https://www.instagram.com/tackytechtom
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
Hi @ThiagoDuarte ,
How about this:
I used the following code to create a calculated column:
TomsRankColumn = RANKX ( FILTER ( Table, Table[rpf] = EARLIER ( Table[rpf] ) ), Table14[rpr], , ASC, DENSE ) - 1
Does this work for you? 🙂
/Tom
https://www.instagram.com/tackytechtom
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
103 | |
98 | |
98 | |
38 | |
37 |
User | Count |
---|---|
152 | |
120 | |
73 | |
72 | |
63 |