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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
johnbradbury
Helper III
Helper III

Card with Percentage

I have a survey response which has the following columns:

 

Start date [shows the date the survey was submitted]

How did we do? [is a drop down list of 5 options; Excellent, Good, Okay, Unsatisfactory, Poor]

 

I want to create a card which shows the total percentages of positive responses [Excellent and Good].

 

Any help would be most appreciated.

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @johnbradbury,

 

If you have the column of the list, you can add it in a slicer with drop-down type. If there isn't such a column, you can add a calculated column with the below formula.

 

Column =
IF (
    [score] >= 90,
    "Excellent",
    IF (
        [score] >= 80,
        "Good",
        IF ( [score] >= 70, "Okay", IF ( [score] >= 60, "Unsatistactory", "Poor" ) )
    )
)

The percentage should be a measure.

 

 

Measure =
DIVIDE (
    CALCULATE (
        COUNTROWS ( 'table' ),
        FILTER ( ALL ( 'table' ), 'table'[Column] IN { "Excellent", "Good" } )
    ),
    CALCULATE ( COUNTROWS ( 'table' ), ALL ( 'table' ) ),
    0
)

If you'd like more precise formulas, please provide a dummy sample that we can download.

 

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors