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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
HanishR
Frequent Visitor

Removing Totals on filtered data

Hi all, 

I am trying to remove a total which is showing misleading information, 
When the data is filtered, or when it is not, the total columns marked below show the last Month / Quarter Total, 
Ideally I would like to hide that total until a month is selected, or alternatively by default show the current months data

 OUTLOOK_AE4DwhvMaZ.png

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @HanishR ,

 

How about create your Budget measure like so:

Budget = IF ( [Sales MTD] <> BLANK (), SUM ( 'Sales'[Budget] ) )

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
Icey
Community Support
Community Support

Hi @HanishR ,

 

Does the expression above work?

 

 

Best Regards,

Icey

HanishR
Frequent Visitor

Yes, Thank you.
Icey
Community Support
Community Support

Hi @HanishR ,

 

It is best not to use quick measure. Create your measure like so:

MTD = TOTALMTD(SUM(Sales[Sales]),'Date'[Date])

 

Or just change your quick measure like so:

Sales MTD = 
IF(
	ISFILTERED('Date'[Date]),
	ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
	TOTALMTD(SUM('Sales'[Sales]), 'Date'[Date]) ---------.[Date] is deleted.
)

 

Then, the total will show the value of max month if no specific month is selected.

mtd.PNG

BTW, .pbix file attached.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

HanishR
Frequent Visitor

@Icey Thank you for that, and I can see how it helps, but it doesn't remove the total of the Budget Sales MTD when both the sales MTDand budget sales MTD measures are set with the format you mentioned. 

Is there a way to only show the budget sales MTD if there is a Value in the Sales MTD? 


Icey
Community Support
Community Support

Hi @HanishR ,

 

How about create your Budget measure like so:

Budget = IF ( [Sales MTD] <> BLANK (), SUM ( 'Sales'[Budget] ) )

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@HanishR , if you have used If in your formula, try to change that to filter.

Or force row context like this

sumx(summarize(Table,Table[class], table[country],"_1",[Budget]),[_1])

 

Please Watch/Like/Share My webinar on Time Intelligence: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...
My Your Tube Tips at: https://www.youtube.com/playlist?list=PLPaNVDMhUXGYrm5rm6ME6rjzKGSvT9Jmy

Appreciate your Kudos.

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

I have not used any formulas in this matrix,
it is purely sum of Budget
sum of sales
and then there's measures as needed for % of budget and % Growth.

@HanishR , These MTD, QTD, YTD are filter using relative date or some formula ?

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

Yes they are using the built in DAX measures MTD & QTD
With Base value being sales and date being date table

OUTLOOK_adIB7pn5Eu.png

 

That is my MTD Sales Formula

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.