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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.