RANKX hierarchy with slicer

jmenche

New Member
Joined
Jun 2, 2006
Messages
26
Howdy,

I don't use PowerBI but I just started using the "add to data model" option in a pivottable and I am fiddling with DAX equations. I wrote a RANKX formula that works great...except it shows the rank for total when I filter for brand.

Total is just a column that has 'Total' for a value so I can put what is basically the grand total on top.

I have an ISFILTERED clause in for brand but the Total is filtered too. Is there a way that I can ignore the Total rank?

Thanks

Jeff
 

Attachments

  • DAX.png
    DAX.png
    9.9 KB · Views: 27
  • RANKX.png
    RANKX.png
    16.4 KB · Views: 25

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi Jeff,

In your DAX formula, try replacing ISFILTERED with HASONEFILTER - this should tell the formula if it is performing the calculation for the "Total" or "Non-total" row.
 
Upvote 0
Thanks! I found a bunch of stuff online too. It never quite worked 100% but I got it to work 99% and can hide the rest :-)
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top