Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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.

 

 

Any help is much appreciated!

TIA

 

edhans 

  • Vvelarde's avatar
    Vvelarde
    6 years ago

    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

     

31 Replies

  • Anonymous can you remove first blank() condition and then check, wondering if you are having blank values.

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      I removed the rule related to blank values and still nothing

      • parry2k's avatar
        parry2k
        Super User

        Anonymous can you drop your measure that one you are using for conditional formatting in a table visual and see what result you are getting. without seeing the data it is hard to say what is going on. 

    • pranlad's avatar
      pranlad
      New Member

      my conditional formatting not working for column however same formatting working fine for another column with same data type

      • pranlad's avatar
        pranlad
        New Member

        I have used Divide() function to arrive at % value

  • Vvelarde's avatar
    Vvelarde
    Community Champion

    Anonymous 

     

    Hi, the key is your Data Type's Column. You see numbers but in the data model are declare it like String / Text Type.

     

    To change to Number Data Type please follow this:

     

    Select your column from Fields (Right Panel) , Go To Modeling --Data Type --Whole Number.

     

    Regards

     

    Victor

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you Vvelarde 

       

      I tried this, when I try to covert it to whole number I get the error "Cannot convert value '' of type Text to type Integer."

       

      Any suggestions?

       

      Thanks

      • parry2k's avatar
        parry2k
        Super User

        Anonymous Vvelarde i'm unable to understand why it is relvent to convert it to number without knowing what is the requirement. Anonymous you have to help us to get help.