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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.