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
noah44
Helper I
Helper I

Showing percentage in Line and Stacked Column Chart

Hi,

 

I have a Line and stacked Column Chart. It shows total Values and the Columns are grouped by a category.

 

noah44_0-1637850728580.png

 

Now I want to show the single category values as a percentage of the total value for each column.

In my picture you can see that the total Value for the selected column is 2462 and the selected category has a value of 1199. I would like the percentage to substitude the category value, instead of 1199 it would be 48.7% for this case.

 

Is there a way to achieve this?

 

 

Best regards 
Noah

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Add this measure to the tooltip:

Category % =
DIVIDE (
    SUM ( Table[Anzahl Abrufscheine] ),
    CALCULATE ( SUM ( table[Anzahl Abrufscheine] ), ALL ( Table[Farzzeugtyp] ) )
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

4 REPLIES 4
PaulDBrown
Community Champion
Community Champion

Add this measure to the tooltip:

Category % =
DIVIDE (
    SUM ( Table[Anzahl Abrufscheine] ),
    CALCULATE ( SUM ( table[Anzahl Abrufscheine] ), ALL ( Table[Farzzeugtyp] ) )
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown,

thanks for the solution! This is exactly what I needed.

amitchandak
Super User
Super User

@noah44 , assume you are using a measure, Create a new measure for % of sub total

 

divide([measure], calculate([measure], removefilter(Table[category]))

@amitchandak  thanks for the reply!

I am not using a measure. I tried your measure anyways but it just gives out 1 (100%) for each category

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.