Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

DAX And Conditional Format

Hello all! I created a calculation which displays the Average Time it takes for someone to answer the phone: Avg Ans Time (Mins) = VAR hours = ROUNDDOWN( 'CallData'[AvgAnsTime] / 3600,0) VAR m...
  • Icey's avatar
    Icey
    4 years ago

    Hi Anonymous ,

     

    // Calculation error in measure 'CallData'[Conditional Format]: Cannot convert value "::" of type Text to Type number.

     

    Please use 'CallData'[AvgAnsTime] instead of 'CallData'[Avg Ans Time (Mins)]. 

    'CallData'[AvgAnsTime] return a number value but 'CallData'[Avg Ans Time (Mins)] returns a text value, which can't be used in Maths functions.

     

    Try this:

    color =
    IF ( 'CallData'[AvgAnsTime] > ( 15 * 60 ), "#ff0000")
    

     

     

    Best Regards,

    Icey

     

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