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: 23
  • RANKX.png
    RANKX.png
    16.4 KB · Views: 21

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,215,432
Messages
6,124,860
Members
449,194
Latest member
HellScout

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