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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
lewisgrantevans
Regular Visitor

Percent of grand total, by X Axis

Hi all,

 

I know this question has been asked in a number of ways but i can't get the other answers to work for me.

 

I have this graph -

 

lewisgrantevans_0-1625590723982.png

 

Using these fields -

 

lewisgrantevans_1-1625590768869.png

For Values, I am using percent count of grand total, but i need this to calculate percent count per Quarter/Year, so 2020 Q1 has these percentage values -

 

lewisgrantevans_2-1625590902771.png

 

I understand from pervious responses that I need to create a Measure, potentially using the following formula -

 

Measure =

DIVIDE (

    CALCULATE ( 

       SUM ( Table[Amount] ),

        ALLSELECTED ( Table ),

        VALUES ( Table[Role] ),

        VALUES ( Table[Date] )

    ),   

CALCULATE ( SUM ( Table[Amount] ), ALLSELECTED ( Table ) )

)

 

I have tried putting my field names into this formula but unfortunately I cannot get this to work. Could someone please help a relative novice?

 

Thanks!

1 ACCEPTED SOLUTION

@lewisgrantevans 

Try this measure:

Measure =
DIVIDE (
    SUM ( Table[Amount] ),
    CALCULATE ( 
        SUM ( Table[Amount] ),   
        ALLSELECTED(Table[Turnaroundtime])  
    )
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@lewisgrantevans 

You use a 100% stacked column chart instead of a line chart. The chart will do the calculation  for you.

Fowmy_0-1625601584669.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

The 100% stacked column chart certainly gives me the correct percentages but i need to visualise it with a line chart, like this -

 

lewisgrantevans_0-1625648773592.png

 

This is one of the most basic excel charts and it's a shame there is no Power Bi equivalent. Do you think I can achieve this with a Measure?

 

@lewisgrantevans 

Try this measure:

Measure =
DIVIDE (
    SUM ( Table[Amount] ),
    CALCULATE ( 
        SUM ( Table[Amount] ),   
        ALLSELECTED(Table[Turnaroundtime])  
    )
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors