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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
StuartSmith
Power Participant
Power Participant

Get % of specific value found in measure

I have the measure...

 

Country KPI Met Icon = IF([Country KPI] >= 0.99, "Expected KPI Met",
IF([Country KPI] >= 0.95 && [Country KPI] < 0.99, "Minimum KPI Met", "KPI Breached"))
 
and trying to create another measure to display in a card visual, that will give the % of values that contain "KPI Met".
 
I have tried a few things, but cant figure it out.  Thanks in advance.
1 ACCEPTED SOLUTION

Sorry, i should have put that "Country KPI" was also a measure, so the above solution would not work.  I was then able to find a solution here: Solved: Count rows with measure equal to x - Microsoft Fabric Community

Thanks for replying and Kudos given 👊

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

%met = 
let kpi_met = CALCULATE( COUNT( [Country KPI]), [Country KPI] >= 0.99)
let kpi_total = COUNT( [Country KPI])

RETURN
DIVIDE (

     kpi_met,
     kpi_total

)

Sorry, i should have put that "Country KPI" was also a measure, so the above solution would not work.  I was then able to find a solution here: Solved: Count rows with measure equal to x - Microsoft Fabric Community

Thanks for replying and Kudos given 👊

Anonymous
Not applicable

Glad you got it sorted!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors