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! Request now

Reply
Hijaika
Frequent Visitor

Calculate Percentage of Column Total

I have a very similar issue to another post, but the solution doesn't work for me - it always calculates the % of all time in visual and not year-wise as in here : https://community.fabric.microsoft.com/t5/Desktop/Calculate-Percentage-of-Column-Total/td-p/1016050

 

So my eqvivalent of : 

Percentage_ALLSELECTED =
DIVIDE (
    SUM ( 'Table'[Sales] ),
    CALCULATE ( SUM ( 'Table'[Sales] ), ALLSELECTED ( 'Table' ) )
)

gives me :

Hijaika_1-1698398922773.png

 

 

My difference is that the underlying rows have date in day.month.year format and the aggregation scope in visual is defined by field parameter, so that user can select wether to view one day,week,quarter or year at a time.

 

1 ACCEPTED SOLUTION

That didnt work either, but i solved my problem trough duplicating the column and using the "show values as column %" or something of that sort.

View solution in original post

2 REPLIES 2
Uzi2019
Super User
Super User

Hi @Hijaika 

You can try the same calculation with small modification.

Percentage_ALLSELECTED =
DIVIDE (
    SUM ( 'Table'[Sales] ),
    CALCULATE ( SUM ( 'Table'[Sales] ), ALLSELECTED ( Date column ) )
)

  I hope you have created the field parameter from date hierarchy only. Year, Qtr, Month and Days.

If my post helps please give kudos and accept it as a solution!
Thanks

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

That didnt work either, but i solved my problem trough duplicating the column and using the "show values as column %" or something of that sort.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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