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
AmazingRandom
Helper II
Helper II

IF function with conditional formatting

I have been asked to prepare a table where values who surpass a threshold (1800) or equal to it are to be highlighted, as well as have any value less than 1800 to be represented as <1800 while still keeping empty blank cells blank. I know conditional formatting can easily get the 'highliting' I need but since I need to format the < into the cell, would it still be doable? 

From my understanding I need to use a IF funtcion to get IF('data'[value] < 1800, "<1800", 'data'[value]), would that work? Or would I need to also mention the empty cells? And how would that affect the IF function? As the data would be refreshed

4 REPLIES 4
FreemanZ
Super User
Super User

hi @AmazingRandom ,

 

please prepare a sample data with enough complexity and with your expected result. 

Would a screenshot work? Or you need it in a csv/xlsx file?

ThresholdLab Result 1Lab Result 2Lab Result 3
1800<180020003000
9002000<900

1200

360390500<360
180<180700<180

That is an example, the threshold also varies from the sample size used in the testing.

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.