cancel
Showing results for 
Search instead for 
Did you mean: 
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

5 REPLIES 5
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
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.