Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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
Proud to be a Super User!
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
Proud to be a Super User!
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.