Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Ranking wrong total

Dear All ,

 

I have already created dynamic ranking DAX formula that is dependable of filters I selected. As you see below , table is showing number of customers having higher sales properly but I could not figure out the total sales of these selected customers. Total sales row returns the real total sales rather than only 6 customers in this example. I have checked many cases mentioning wrong total dax formula but still having trouble. Could you please help me ?

 

Thanks

 

burak_d34_1-1698324577641.png

 

4 REPLIES 4
Anonymous
Not applicable

Hi Again ,

 

Is there anyone who can help you regarding this issue I am having ?

Thanks

amitchandak
Super User
Super User

@Anonymous , Ate you using TOPN or Rank ?

 

Power BI: rankx, topn, dynamic topn with numeric parameters
https://youtu.be/cN8AO3_vmlY?t=25620

 

Learn Power BI: Dynamic TOPN using TOPN/Window and Numeric parameter: https://youtu.be/vm2mdEioQPQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Again ,


Formula that I am having trouble is below. Total sum is not changing depending on ranking option. I guess the issue is resulted from IF formula in the last row. Could you please navigate me on how to fix the problem ?

burak_d34_0-1698917979726.png

 

Anonymous
Not applicable

Hi @amitchandak 

I used rankx formula to sort customers from highest to lowest based on its sales. After that , I wanted to see total sales of only selected customers based on rankx formula.

 

Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.