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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Result based on the values

Hi Team,

I want to create a column as Score from the risk score

0 - 4 as Low 

5-6 as Medium

7-8 as High,

Here is my table

IDLocationProject StatusRisk Score
1001INDAACompleted0
1002USABIn Progress1
1003INDACDelayed2
1004UKADCompleted3
1005GlobalAEIn Progress4
1006USAFDelayed4
1007GermanyAACompleted5
1008INDAFIn Progress5
1009USAHDelayed6
1010UKBBCompleted6
1011GermanyABIn Progress7
1012INDACDelayed7
1013USAFCompleted8
1014UKARIn Progress8
1015USAGDelayed8
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , A new column 

 

Switch(true() ,

[Risk] <= 4, "Low" ,

[Risk] <= 6, "Medium" ,

"High"

)

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

aj1973
Community Champion
Community Champion

Hi @Anonymous 

aj1973_0-1625488739841.png

here is the formula

Risk Type =
VAR _Risk =
SELECTEDVALUE ( Sheet1[Risk Score] )
RETURN
IF ( _Risk <= 4, "Low", IF ( _Risk <= 6, "Medium", "High" ) )

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

2 REPLIES 2
aj1973
Community Champion
Community Champion

Hi @Anonymous 

aj1973_0-1625488739841.png

here is the formula

Risk Type =
VAR _Risk =
SELECTEDVALUE ( Sheet1[Risk Score] )
RETURN
IF ( _Risk <= 4, "Low", IF ( _Risk <= 6, "Medium", "High" ) )

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

amitchandak
Super User
Super User

@Anonymous , A new column 

 

Switch(true() ,

[Risk] <= 4, "Low" ,

[Risk] <= 6, "Medium" ,

"High"

)

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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