Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Have text on Y Axis rather than number

I'm creaitng  a line graph based off RAG status. I have created an IF stattement so IF it says Green, the number is 1, Amber = 2, Red = 3.  Is it possible to have Red, Amber, Green going down the Y ...
  • v-kkf-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    Please try the Line Graph with Text Axis Labels (Y-axis) and Dates (X-axis) visual. And use the measure as value.

     

    Measure = 
    SWITCH ( SUM ( 'Table'[Value] ), 1, "Green", 2, "Amber", 3, "Red" )

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.