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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
11097486
Helper I
Helper I

Measure: Percentage with multiple catgories

Hello, I'm tying to find a way to calculate percentages with multiple categories (see below) without using the option "show value as percentage". With this option, when we apply filters, the percentages change and I want them to stay the same.

 

I need a measure to do it but I can't find the solution.

 

11097486_0-1607096506025.png

Thank you

 

1 ACCEPTED SOLUTION
11097486
Helper I
Helper I

I used this measure and it worked. Thank you

 

Measure =  COUNT(Table1[Date])/CALCULATE(COUNT(Table1[Date]);ALL(Table1[Category]))

View solution in original post

2 REPLIES 2
11097486
Helper I
Helper I

I used this measure and it worked. Thank you

 

Measure =  COUNT(Table1[Date])/CALCULATE(COUNT(Table1[Date]);ALL(Table1[Category]))

mahoneypat
Microsoft Employee
Microsoft Employee

You can use a measure like this to get your result.  Update it with your measure and the Month column used in your visual.

 

Pct All Months =
VAR vThisMonth = [Your Measure]
VAR vAllMonths =
    CALCULATE (
        [Your Measure],
        ALLSELECTED ( Date[Month] )
    )
RETURN
    DIVIDE (
        vThisMonth,
        vAllMonths
    )

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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