Forum Discussion
Ranking Issues
1.Hi Folks, I am using source is tabular cube. How we build the cube we are calling all facts in view(Main FactTable) and connect with Dimenssions. Now my view producing 800000(8 lakhs) records so while connecting power bi and using some columns in a table and apply the ranking functionalty(1,20,000 records in one table) but it's not producing correct ranks. Is it possible to apply ranks for huge volume of data. When am applyingrank is asc it's always giving as 1 1 1 1 1 11 1 1 1 2 2 2 2 2 2 2 2 2l .ike this
2. even when i apply TOP 50 records on the volume of of data like 1,20,000 it's not filtering 50records.
Can you please clarify is it possible in Power bi to apply ranks on volume of data.
15 Replies
- nandukrishnavsCommunity Champion
Anonymous
It is possible. Refer to this link.
https://www.sqlbi.com/articles/use-of-rankx-in-power-bi-measures/
If you can share the sample data, then we can try that.
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂- AnonymousNot applicable
Hi Please find the below sample data.
State licence came from Table A
Provider Legacy Number, Provider name came from Table B
Paid Amount, Total claim services, Unique patients,# of service Came from Table3 Fact(This all are sum), Now i want to display Top 50 records based on paid amount. Please let me know if you need any information.
- nandukrishnavsCommunity Champion
Anonymous
Can you share the data in a table format (Not image)? Or in an excel file? You can mask your confidential data and share few rows and expected output.
- v-gizhi-msftCommunity Support
Hi,
Here is rank created by measure and column:
Rank(Measure) = RANKX(ALLSELECTED('Table'),CALCULATE(SUM('Table'[Value])),,ASC,Dense)Rank(Measure) = RANKX(ALLSELECTED('Table'),CALCULATE(SUM('Table'[Value])),,ASC,Dense)The result shows:
See my attached pbix file.
Best Regards,
Giotto