Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

undefined

I have a data set that is decimal and I converted it to hh:mm:ss in the visual but I don't know how to conditional format the hh:mm:ss with icons. Do I have to create a new column and conditional format the decimal point and then convert to time format?

  • Hi Anonymous,

     

    You can apply conditional formatting to the time format.

    Create a measure as:

    Measure = 
    IF(
        MAX('Table'[Column1])>=TIME(6,0,0),
       "blue",
        "yellow"
    )

    Here is the output:

    Please try the attached pbix.

     

    Best Regards,
    Link

     

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

     

2 Replies

  • Anonymous , Create conditional formatting based on the decimal column and use that.

    You can also use color measure

     

    Color =Switch(true() ,

    [Number] <600 , "Red" ,

    [Blue] <600 , "Blue" ,

    // Add other

    )

    Use in conditional formatting with field value option

     

  • v-xulin-mstf's avatar
    v-xulin-mstf
    Community Support

    Hi Anonymous,

     

    You can apply conditional formatting to the time format.

    Create a measure as:

    Measure = 
    IF(
        MAX('Table'[Column1])>=TIME(6,0,0),
       "blue",
        "yellow"
    )

    Here is the output:

    Please try the attached pbix.

     

    Best Regards,
    Link

     

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.