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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Assign a score depending on measure value

I am trying to assign a score to new measure:

 

0  = 100/100
1  = 75/100
2  = 50/100
3+ = 0/100

 

I have found partial solution however I not sure how to start formula. 

 

Column =
    'SNC'[Disruption per month] >= 100  && 'SNC'[Disruption per month] = 0,
    'SNC'[Disruption per month] >= 75 && 'SNC'[Disruption per month] = 1,
    'SNC'[Disruption per month] >= 50 && 'SNC'[Disruption per month] = 2,
    'SNC'[Disruption per month] >= 0 && 'SNC'[Disruption per month] >= 3,

 

Any help will be greatly appreciated.

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

Use SWITCH and variables to shorten the code.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

As another community member said, you can combine them using "switch" , as the following writes , for your reference.

 

Measure= switch('SNC'[Disruption per month]>=100,"0",>=75,"1",>=50,"2",>=0,"3+")

 

 

Best regards,

Community Support Team Selina zhu

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

 

daXtreme
Solution Sage
Solution Sage

Use SWITCH and variables to shorten the code.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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