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

Display column total % and not Percent of Grand Total

Hi All

 

I have a table of data and I am able to get the column total %, but when I use line charts to present the data across mulitple years, they showed as percentage of grand total instead.

 

Please could anyone help how to present the chart in column total % across mulitple financial years?

 

https://drive.google.com/file/d/1Bmy28Fno9O0rGj8yWC3lB2WaqQC6p62x/view?usp=sharing

 

Thanks.

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

@Apple08 

Here you go

aj1973_0-1665754472781.png

aj1973_1-1665755241186.png

 

Measure =
DIVIDE (
'_AG Measures'[YTD Age Group],
CALCULATE (
'_AG Measures'[YTD Age Group],
ALLSELECTED ( 'fact_Staff_Data'[Age Group] )
)
)

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

8 REPLIES 8
Apple08
Helper IV
Helper IV

I have googled a DAX below:

 

% AG column total = DIVIDE (count (fact_Staff_Data[Age Group] ), CALCULATE ( count(fact_Staff_Data[Age Group]),ALLEXCEPT(dim_Dates,dim_Dates[FY] ) , ALLEXCEPT(dim_Dates,dim_Dates[FYQtr])),0)
 
However the result was showing the sum of rows to 100% rather than the column total 100%.
 
Any help would be appreciated.
 
Apple08_0-1665744218439.png

 

 

I need a DAX measure to get the column percentage like the below then to plot a graph:

 

Apple08_0-1665744756356.png

 

aj1973
Community Champion
Community Champion

@Apple08 

Here you go

aj1973_0-1665754472781.png

aj1973_1-1665755241186.png

 

Measure =
DIVIDE (
'_AG Measures'[YTD Age Group],
CALCULATE (
'_AG Measures'[YTD Age Group],
ALLSELECTED ( 'fact_Staff_Data'[Age Group] )
)
)

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Millions of thanks!  I appreciated it very very much 🙂

Apple08
Helper IV
Helper IV

Do I need to setup some measures for the line chart or is it possible to switch to column chart?

aj1973
Community Champion
Community Champion

Didn't understand your question, sorry.

like this?

aj1973_0-1665762155025.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hi Amine

 

The question I asked was before you sent out your DAX, this is all resolved now.  Many thanks again for your help. 🙂

aj1973
Community Champion
Community Champion

Hi @Apple08 

In the line chart you don't have this option

aj1973_0-1665578446259.png

You only have the Percent of grand total option

aj1973_1-1665578522033.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

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