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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Prabhakaran_Nag
Frequent Visitor

X and Y axis is text and Result shows in Y axis

Hello All,

 

Quickly need your help to plot in X and Y axis as Text (labels) and to roll over the values accordingly as result, example shown below and kinldy share if anyone tried new way to plot this chart or any other visual type. This is just a sample but it gonna be big data numbers in the future but need help to understand whether we can plot X and Y axis combination as Text

 

Text X axisText Y axisValues Result 
AB1
CD2
EF3
GH4
IJ5
KL6
MN7
OP8
QR9
ST10
UV11
WX12
YZ13
1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

Hi @Prabhakaran_Nag 

Powerbi generally expects to use numeric values as axes in most visuals, I can give you a workaround here.

First, create an index column in power query.


vjialongymsft_0-1734400305627.png

Then create a label column.

Label = 'Table'[Text X axis] & "-" & 'Table'[Text Y axis] & "-" & 'Table'[Values Result ]

 

Then open the Category label option.

vjialongymsft_1-1734400758481.png



vjialongymsft_2-1734400790950.png

 

 

 

 

 

Best Regards,

Jayleny

 

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
v-jialongy-msft
Community Support
Community Support

Hi @Prabhakaran_Nag 

Powerbi generally expects to use numeric values as axes in most visuals, I can give you a workaround here.

First, create an index column in power query.


vjialongymsft_0-1734400305627.png

Then create a label column.

Label = 'Table'[Text X axis] & "-" & 'Table'[Text Y axis] & "-" & 'Table'[Values Result ]

 

Then open the Category label option.

vjialongymsft_1-1734400758481.png



vjialongymsft_2-1734400790950.png

 

 

 

 

 

Best Regards,

Jayleny

 

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

rohit1991
Super User
Super User

To plot text-based X and Y axes with values in Power BI, follow these steps:

  1. Import the Data: Load your table into Power BI.

  2. Use a Matrix Visual:

    • Go to Visualizations → select Matrix.
    • Drag:
      • Text X axis → Columns.
      • Text Y axis → Rows.
      • Values Result → Values.
  3. Enable Formatting:

    • To show values clearly, enable Data Labels in the format pane.
    • For a heatmap look:
      • Right-click Values → Conditional Formatting → Background Color.
      • Apply a color scale to highlight results visually.

This will give you a clean, easy-to-read matrix with text-based X and Y axes and results displayed clearly.

Thejeswar
Super User
Super User

@Prabhakaran_Nag ,

You can plot a value correlating two text one in x-axis and another in Y-axis in a matric visual. 

 

Regards,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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