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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Suprith
Frequent Visitor

Come up with a score based on measures condition

Hello, 

 

I am trying to score a server based on certain parameters, for example if below measures satifies the condition, then Server's score is 100 , otherwise assign a lower score. Can i use variables to assign a score ? 

 

Note : I am comparing below measures against the threshold limit. 

 

[CPU_Utlization] < 80% 

[Memory used] < 80% 

[Disk Used] < 75% 

[Failures] = 0

1 ACCEPTED SOLUTION

@Suprith , Create like

 

Switch( True (),
[CPU_Utlization] < .8 , 10 ,
[CPU_Utlization] < .9 , 9 , // Say
0
) + Switch( True (),
[Memory used] <.8 , 10 ,
[Memory used]< .9 , 9 , // Say
0
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Suprith , if the above are columns create a new column, if they are measure create a new measure

 

Switch( True (),
[CPU_Utlization] < .8 && [Memory used] .8 && [Disk Used] < .75 && [Failures] = 0 , 100 ,
[CPU_Utlization] < .8 && [Memory used] .8 && [Disk Used] < .75 && [Failures] <=5 , 90 , // Say
0
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks Amit, but is there a way we can start adding up a score, say

if CPU < 80%, Score = 10

if Memory < 80%, Score = 10 + 10 = 20

if Disk > 80% , then score = 20+ 5 (instead of 10 as it is above the threshold) , finally return the score 

@Suprith , Create like

 

Switch( True (),
[CPU_Utlization] < .8 , 10 ,
[CPU_Utlization] < .9 , 9 , // Say
0
) + Switch( True (),
[Memory used] <.8 , 10 ,
[Memory used]< .9 , 9 , // Say
0
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

It worked 🙂 , thanks a lot for your help. 

Thanks Amit, will try this and let you know the outcome. Much Appreciated.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.