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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Syndicate_Admin
Administrator
Administrator

Problems taking % of total for a certain dimension

Hello.

I'm new to Power BI and I have a problem with getting the percentage of the total for a measure, that is, I have the following, when I get the percentage of the total for the operator measure, I don't have a problem, but when I get it for technology, I don't get it:

Here is the example that does give me correct, by operator

odguzman_0-1721688944933.png

odguzman_1-1721688965609.png

odguzman_2-1721688981553.png

odguzman_3-1721689000962.png

Here is the other scenario that does not work for me, since the "Total Traffic Tech [PB]" I cannot obtain the total traffic by technology, therefore the percentage does not give me the correct distribution.

odguzman_4-1721689382305.png

odguzman_5-1721689494402.png

odguzman_6-1721689517619.png

odguzman_7-1721689586603.png

Any help will be appreciated.

Best regards.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Syndicate_Admin 

Based on your information, I create a sample table:

vyohuamsft_0-1721718416261.png

Then create measure:

Percentage=
DIVIDE (
    SUM ( 'Traffic 2024'[Traffic PB] ),
    CALCULATE (
        SUM ( 'Traffic 2024'[Traffic PB] ),
        ALLSELECTED ( 'Traffic 2024'[Tech] )
    )
)

Here is my preview:

vyohuamsft_1-1721718681317.png

The field Traffic PB needs to be aggregated, otherwise the following problems will occur

vyohuamsft_2-1721718790959.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @Syndicate_Admin 

Based on your information, I create a sample table:

vyohuamsft_0-1721718416261.png

Then create measure:

Percentage=
DIVIDE (
    SUM ( 'Traffic 2024'[Traffic PB] ),
    CALCULATE (
        SUM ( 'Traffic 2024'[Traffic PB] ),
        ALLSELECTED ( 'Traffic 2024'[Tech] )
    )
)

Here is my preview:

vyohuamsft_1-1721718681317.png

The field Traffic PB needs to be aggregated, otherwise the following problems will occur

vyohuamsft_2-1721718790959.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

RossEdwards
Solution Sage
Solution Sage

Percentage Of Total Trafico Tech = 
var numerator = [Total Trafico Tech[PB]]
var denominator = CALCULATE([Total Trafico Tech[PB]], ALL('Traffic 2024[Tech])
RETURN
DIVIDE(numerator, denominator)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors