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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Mike35
Frequent Visitor

Measure to calculate a percentage of total based on multiple responses

Hi all,

 

Hoping someone can help. I'm looking to create a measure which demonstrates a Total % based on multiple count values of data in a given field. The measure would then be used in conjunction with a date slicer to have a total % not just per day, but for a selection of days. For example;


Table name: Observation

Mike35_1-1718715506096.png

 

If "YES" or "MAYBE" are entered it would be calculated as a positive response which I'm looking to calculate as a % to display in a card visual.

 

On 01/06/2024, there are 2 "YES, 1 "MAYBE" and 1 "NO" response, calculating as 75%.

On 01/06/2024-03/06/2024 inclusive, there are 6 "YES", 3 "MAYBE", 9 "NO" responses, so the pecentage is 50%.

 

Thanks in advance for any solutions you can help with.

 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Mike35 , Try using below formula 

 

Total % = 
DIVIDE(
    CALCULATE(
        COUNTROWS('YourTable'),
        'YourTable'[Score] = "YES" || 'YourTable'[Score] = "MAYBE"
    ),
    CALCULATE(
        COUNTROWS('YourTable'),
        ALLEXCEPT('YourTable', 'YourTable'[Date])
    )
)

 




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

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@Mike35 , Try using below formula 

 

Total % = 
DIVIDE(
    CALCULATE(
        COUNTROWS('YourTable'),
        'YourTable'[Score] = "YES" || 'YourTable'[Score] = "MAYBE"
    ),
    CALCULATE(
        COUNTROWS('YourTable'),
        ALLEXCEPT('YourTable', 'YourTable'[Date])
    )
)

 




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

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors