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 Axis rather than 1,2,3 ? 

 

3 Replies

  • v-kkf-msft's avatar
    v-kkf-msft
    Icon for Community Support rankCommunity Support

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi, I have the same query. When I try to use the graph you suggested PowerBi states the visualization has expired. Do you possibly have another solution?

  • Hi Anonymous, try the visual Advanced Line Chart  which has the functionality you are looking for. Here you can map categories in both X and Y axis.