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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Calculated Field Issue

Hi everyone

 

I have a strange issue with a calculated column that I've setup.  The formula for this column is below:

 

RiskColour = IF('Table1'[Risk] = "1 - Low",1, IF('Table1'[Risk] = "2 - Medium",2, IF('Table1'[Risk] = "3 - High",3,0)))

 

This column should return a number between 1 and 3 based on the risk text value.  If the risk doesn't match any of these values (which shouldn't happen as this is a mandatroy field in a SharePoint Online list) then the column should return 0.

 

However when I add this column to my table visualisation in PBI Desktop I get the following:

 

Capture.PNG

 


Can anyone see any reason why the first record would return 4 for this calculated column?  Every other record is correct but for some reason the top record has returned 4 even though the formula in my calculated column should never return 4?

 

Any assistance with this would be gratefully received as I can't see why this is happpening.

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Click on the right button "don't summarize" in the RiskColour values!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Click on the right button "don't summarize" in the RiskColour values!

Anonymous
Not applicable

@Anonymousperfect, that's working now.  Thank you for such a quick reply!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors