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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mckennaodonnell
Frequent Visitor

How to make a rate measure respond to a slicer?

Hello, 

 

Requirement

 

Determine the response rate of attendees from an event and have it update when an event is updated in a slicer. When it is filtered and not filtered. 

 

I am attempting to make a measure respond when a slicer is selected. When it is de-selected, the measure calculates with the "Select All". how do I get the rate formula to respond when it is filtered by Event Name? How do I get the formula to return a blank when nothing is selected?

mckennaodonnell_0-1670893101786.png

mckennaodonnell_1-1670893124285.png

 

The Card hosting my response rate KPI is 

ResponseRate = DIVIDE([Total Survey Respondents],[Total ExAttendees], "N/A")

 

the denominator is:

Total Attendees = CALCULATE(SUM('Events'[countParticipants]),FILTER(Respondees,Respondees[Event ID]=
    SELECTEDVALUE('Respondees'[Event ID]))) 

 

the numerator is:

Total Survey Respondents = DISTINCTCOUNT(Attendess[Attendee Name])

 

2 REPLIES 2
v-jialluo-msft
Community Support
Community Support

Hi  @mckennaodonnell ,

 

You can try this measure:

ResponseRate =
DIVIDE (
    IF ( ISFILTERED ( 'Respondees'[Event ID] ), [Total Survey Respondents], 0 ),
    [Total ExAttendees],
    "N/A"
)

If that's not what you need, upload a sample file.

 

Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank you! @v-jialluo-msft How do you get it it calculate in the measure when it is not filtered?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.