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
space83
Helper IV
Helper IV

graph show percentage base on data already filtering

My graph show data based on value as below:

graf-1.jpg

 

Is that possible for me to change the value to percentage based on filtering data?

I already did but grand total also count data that I already filtered.

The objective is when I sum every bar for every month, I will got result 100%

 

setting-2.jpg

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @space83 ,

 

According to your description, this can be done by creating MEASURE formulas. The key is to clear the external filtering context on the denominator with functions like all, allselect, etc.
Refer to the following test results.

Amount_filter = sum(FactInternetSales[SalesAmount])
Per_ =
VAR TotalAmountByColor =
    CALCULATE ( [Amount_filter], ALLSELECTED ( DimProduct[Color] ) )
RETURN
    DIVIDE ( [Amount_filter], TotalAmountByColor, BLANK () )

vhenrykmstf_0-1657616573551.png

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @space83 ,

 

According to your description, this can be done by creating MEASURE formulas. The key is to clear the external filtering context on the denominator with functions like all, allselect, etc.
Refer to the following test results.

Amount_filter = sum(FactInternetSales[SalesAmount])
Per_ =
VAR TotalAmountByColor =
    CALCULATE ( [Amount_filter], ALLSELECTED ( DimProduct[Color] ) )
RETURN
    DIVIDE ( [Amount_filter], TotalAmountByColor, BLANK () )

vhenrykmstf_0-1657616573551.png

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

@space83 , You have to create a measure. Assume your current measure is m1

 

divide([M1], calculate([M1],  removefilters(Table[On Time]) ) )

 

Percent of SubTotal or Total: https://www.youtube.com/watch?v=6jTildcV2ho&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=37

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