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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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