Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
PuR
Regular Visitor

How to prevent Grand total in the table from getting filtered by slicer?

Hi, I've a fruit table with slicer that filters fruit type. It has built-in total function showing the total fruits for each person.image.pngScreenshot 2022-08-22 181643.jpgHow do I make Total (fruits) remain unchanged even when the slicer is being selected for different fruit type? Is there a way to do it? Any help would be appreciated. Thank you.

5 REPLIES 5
PuR
Regular Visitor

Thank you, @amitchandak and @parry2k, for your help. I checked the video linked by parry2k but it didn't seem to work out for me. Maybe I am not understanding it correctly. Or maybe I wasn't able to explain what I meant to ask in my question. I found a solution. It is inefficient and a bit tedious. I am learning and if anyone found a better solution, please kindly post it here for a future reference.

 

Here is my solution:

Two same table: Table1 and Table2.Two same table: Table1 and Table2.Minimizing Table2, and only showing grand total.Minimizing Table2, and only showing grand total.Date table is only connected to Tabel2, unlike Table1.Date table is only connected to Tabel2, unlike Table1.Selecting Month slicer.Selecting Month slicer.Selecting Month with two fruit types.Selecting Month with two fruit types.Final picture.Final picture.

Thank you once again, amitchandak and parry2k, for your help.

parry2k
Super User
Super User

@PuR great solution from @amitchandak , check my video on ISINSCOPE and ISFILTEREDand see if it helps you to learn further. https://youtu.be/Nd1jP9C8ZvQ

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

amitchandak
Super User
Super User

@PuR . Create a meausre like

 

if(isinscope(Table[fruit]), [Measure], calculate([measure], all()) )

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi amitchandak, thank you for your reply. I am new to dax measure so could you go step further and explain the "Measure" and "calculate[measure]" in the dax formula? I checked the link you attached and I am still lost. Why or how to create isTotal column because Seller has Total country in its row? Is "Measure" == Measure and "measure" == Measure 2 in the kasper on bi example? Thank you.

@PuR , Please refer to the video from @parry2k , which should help how isinscope and isfiltered work.

 

Assume you have a measure that is used in your visual. You need to use the same other than grand total. So if the check is checking if fruit type isinscope , if that is true use measure. else you can use a measure with all filter removed calculate([Measure] ,all())

 

if(isinscope(Table[fruit Type]), [Measure], calculate([measure], all()) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors