Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jdougg
New Member

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 ? 

jdougg_0-1653650711742.png

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @jdougg ,

 

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" )

vkkfmsft_0-1653893418375.png

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.

View solution in original post

3 REPLIES 3
Sarbesh19
New Member

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

922.png

 

v-kkf-msft
Community Support
Community Support

Hi @jdougg ,

 

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" )

vkkfmsft_0-1653893418375.png

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.

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?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors