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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ChristianAU
Regular Visitor

Response rate measure

I have a column with 1's and 0's which is based on a yes/no system, where 1's = yes and the 0's = no.

How do i make a measure that gives me a response rate with this dataset? The percentage of the dataset with 1's compared to 0's.

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@ChristianAU ,

Please refer the attached file.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

3 REPLIES 3
Arul
Super User
Super User

@ChristianAU ,

Please refer the attached file.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Thank you, it worked!

_AAndrade
Super User
Super User

Hi @ChristianAU,

Here is my solution:

I'm using this table:

_AAndrade_0-1715936598794.png

I have 3 "YES" at a total of 8 answers, so 37.5% of YES answers.

I used this DAX measure to compute this number:

% YES = 
VAR _CountYes = 
    CALCULATE(
        COUNT(T_Responses[Answer]),
        T_Responses[Answer] = 1
    )
VAR _TotalAnswers = COUNTROWS(T_Responses)

VAR _Result = DIVIDE(_CountYes, _TotalAnswers)

RETURN
    _Result


Final result:

_AAndrade_1-1715936722076.png

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.