cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors