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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
vividarinda
Helper II
Helper II

Conditional Subtotals

Hi Experts,

 I am novice to power bi and struggling with conditional subtotals of specific value. For example : On subtotals only total from major fleet and small fleet, not all values.

vividarinda_0-1703123902111.png

 

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@vividarinda , Assume Major fleet is in column C1 and you measure is in use is m1

 

Then have to change the total

Switch(true() ,

isinscope(Table[C1]), [M1],

calculate([M1], filter(Allselected(Table[C1]), Table[C1] ="Major fleet"))

 

How to Switch Subtotal and Grand Total in Power BI | Power BI Tutorials| isinscope: https://youtu.be/smhIPw3OkKA

 

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

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 ,

Thanks for prompt response Amitchandak.

But i have get error like this. 

vividarinda_0-1703131035333.png

 

Anonymous
Not applicable

HI @vividarinda,

I think the issue should be related the expression structures, the marked right brackets should be placed to the end of the formula. (it seems like you have broken the calculate function usages)

1.png

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors