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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Conditional Formatting Not Working

Hello all,

 

First off I am new to Power BI so if this is a simple explanation I apoligize. I tried googling and could not really find a solution.

 

I have a table vizualization that I would like to conditionally format one column to display an amber exclamation point if the value is greater than 14 and less than 31, and display a red X if the value is greater than 31. I have enetered the parameters to do this (or so I thought) and it seems to do nothing. Please see screen shot.

 

Days vacant.png

 

Any help is much appreciated!

TIA

 

@edhans 

1 ACCEPTED SOLUTION

@Anonymous 

 

Yeahh, you have Row with Spaces in that column you need to cleaned before.

 

One way is create a new Column :

 

DaysOpennedModified=IF(ISERROR(VALUE('HR'[Days Openned])),BLANK(),'HR'[Days Openned]) , now this column you can change to Whole Number.

 

Regards

 

Victor

 




Lima - Peru

View solution in original post

31 REPLIES 31

You have to develop the first dropdown list where you have Count of Days Opened displayed

Anonymous
Not applicable

Sorry this is new to me, I am not really sure what that means

@Anonymous did you tried what I mentioned.You column is a text not a number and tha'ts why you cannot sum it up. You need to outline your requirement, do you want conditional formatting on sum or on count, those are two different things.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@Anonymous  can you share with us a screenshot of your column like the one below

help003_your column.png

Anonymous
Not applicable

Before I try to change to whole number:

before.PNG

 

After I change to a whole number:

after.PNG

@Anonymous 

 

Yeahh, you have Row with Spaces in that column you need to cleaned before.

 

One way is create a new Column :

 

DaysOpennedModified=IF(ISERROR(VALUE('HR'[Days Openned])),BLANK(),'HR'[Days Openned]) , now this column you can change to Whole Number.

 

Regards

 

Victor

 




Lima - Peru
Anonymous
Not applicable

This is exactly what I needed, thank you!!! 😁

@Anonymous as I mentioned before, it doesnt matter if it is a text or number, it all depends what logic you want to apply, if you want your icons based on count then text value is fine, only need to change it to number, if your logic is based on the sum of these values. You have to be clear on your requirement and as mentioned earlier, send sample data with expected output.

 

Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

So the column is stored as text for some reason, so when I try to covert it to whole number I get the error "Cannot convert value '' of type Text to type Integer."

@Anonymous seems like we are over complicating the things here. Why not you share raw data or your pbix file, remove sensitive information before sharing and explain wht you want, and I'm sure someone will able to get you the solution asap. You can share using onedrive/google drive or you can send me directly on my email address given in my signature.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

So I think it is becuase the column is stored as text for some reason, so when I try to covert it to whole number I get the error "Cannot convert value '' of type Text to type Integer."

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors