cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sean-OReilly
Helper IV
Helper IV

Turn Off a Total from a Table Visual

Hi

How turn off the Total on Column "Vendor Rate Description"?

This row is generated using a DAX Switch Measure and it is a Text based Column?

 

Sean-OReilly_0-1599665798231.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

3 REPLIES 3
Greg_Deckler
Super User
Super User

@Sean-OReilly - You can turn off Totals in the Format pane. However, if you want it just for that measure,

Measure =
  VAR __Calc = <some calc>
RETURN
  IF(HASONEVALUE('Table'[AccountID]),__Calc,BLANK())

You can also get there doing a similar thing with COUNTROWS('Table') and comparing to COUNTROWS(ALL('Table')) if they are the same, then you are in a total row. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@Sean-OReilly ,

add additional if in your filter

if( isfiltered(Table[Account]) , <Your formula> , blank())

 

or you can also try isinscope

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Thanks man - it worked

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors