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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Antonio195754
Helper IV
Helper IV

Help creating bar graph that shows percent of given column value by month and also by hierarchy

Hi all,

 

I've been basically trying to create what can be done with a Pivot table in Excel, into a bar graph in PBI. 

I've been able to match numbers when i create a matrix, screen shot below, but when i convert to a bar graph my %'s do not match.  I drop the values in the Late column where i'm looking to get % of "Not Late", and the only option i see is to change to "% of grand total", which is not the number i'm trying to get.  I'm trying to get the % of value total by months in one graph, and then by hierarchy in another graph using tier 3 (to drill down to tier 1 if possible) column in sample data i've attached.

 

I'm attaching also the graphs i created that do not match

 

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

 

https://drive.google.com/file/d/17YJaXB7d-eTq6j0s6un2LMKsMRJXhYmw/view?usp=sharing

 

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

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi Antonio195754,

You could try below suggestions to see whether it works or not.

Create two measures

 

based on leader =
SUM ( 'Table'[Worker Owner ATTUID] )
    / CALCULATE (
        SUM ( 'Table'[Worker Owner ATTUID] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Month] = MIN ( 'Table'[Month] )
                && 'Table'[Tier 3] = MIN ( 'Table'[Tier 3] )
        )
    )
based on month =
SUM ( 'Table'[Worker Owner ATTUID] )
    / CALCULATE (
        SUM ( 'Table'[Worker Owner ATTUID] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Month] = MIN ( 'Table'[Month] ) )
    )

Then ceate a measure like below

 

 

Measure 2 =
IF ( ISINSCOPE ( 'Table'[Tier 3] ), [based on leader], [based on month] )

 

 

You could create chart like below and click on button in blue circle or double click on bar, it will show like below

235.PNG236.PNG237.PNG

 

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
dax
Community Support
Community Support

Hi Antonio195754,

You could try below suggestions to see whether it works or not.

Create two measures

 

based on leader =
SUM ( 'Table'[Worker Owner ATTUID] )
    / CALCULATE (
        SUM ( 'Table'[Worker Owner ATTUID] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Month] = MIN ( 'Table'[Month] )
                && 'Table'[Tier 3] = MIN ( 'Table'[Tier 3] )
        )
    )
based on month =
SUM ( 'Table'[Worker Owner ATTUID] )
    / CALCULATE (
        SUM ( 'Table'[Worker Owner ATTUID] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Month] = MIN ( 'Table'[Month] ) )
    )

Then ceate a measure like below

 

 

Measure 2 =
IF ( ISINSCOPE ( 'Table'[Tier 3] ), [based on leader], [based on month] )

 

 

You could create chart like below and click on button in blue circle or double click on bar, it will show like below

235.PNG236.PNG237.PNG

 

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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