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
Alex_0201
Post Partisan
Post Partisan

Swapping X and Y axis in Line chart

Hi everyone. Could someone please explain how to swap X and Y axis in a regular line chart using standard visualization.

Here is how it looks and how it should look like:

 

Capture.PNG       1.PNG

 

Thanks in advance!

1 ACCEPTED SOLUTION

Are you sure you want a line chart? line charts aggregate value by category. You need the aggregation for a category like bars. If you want to draw specific y and x axis you might be looking for a scatter chart. You can there specify both axis by details (category).

Consider that the concept of "Values" in any visualization on Power Bi will always aggregate it.

Regards,


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

Happy to help!

LaDataWeb Blog

View solution in original post

6 REPLIES 6
yashwant101
Helper II
Helper II

Hi all,

Did we find any solution/workaround for having the axes swapped on line chart?

 

Regards,

Yashwant

ibarrau
Super User
Super User

Hi. You can edit the visualization changing your values to y-axis and y-axis to values. That's the only way.

Hope this helps,

 


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

Happy to help!

LaDataWeb Blog

Hi @ibarrau the problem is that the Yaxis (values) is aggregated and therefore the plot is wrong 😕

 

 

Are you sure you want a line chart? line charts aggregate value by category. You need the aggregation for a category like bars. If you want to draw specific y and x axis you might be looking for a scatter chart. You can there specify both axis by details (category).

Consider that the concept of "Values" in any visualization on Power Bi will always aggregate it.

Regards,


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

Happy to help!

LaDataWeb Blog

@ibarrau You might be ritght. I need to test it with a client tomorrow.

Hi @Alex_0201 ,

 

It is not supported for Power BI to swap axises or columns. You could submit the similar ideas:

https://ideas.powerbi.com/ideas/idea/?ideaid=f7c41b5f-9feb-4f71-b487-d61ebc6970fb

https://ideas.powerbi.com/ideas/idea/?ideaid=200a23e9-7d21-4c87-a5ea-940f082ba72e

 

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

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.