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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to dispay Line and bar chart Direct query data in the descending order

Hi Community,

 

I am working with live data(Direct Query). I wanted to plot the number of events that occurred every hour for the last 48 hours broken down by each hour. I am able to plot the data but I am print the X-axis in descending order. My plot looks like this:

bharathkarre_0-1606764895738.png

Here I want to print the X-axis from 48 to 1 instead of on 1 to 48. Could anyone kindly let me know how to plot the X-axis in descending order. 

Many thanks in advance

1 ACCEPTED SOLUTION
edhans
Super User
Super User

In the upper right of the chart, click on the ellipses and the sort icon and sort by the hours column, descending. It has to be text though.

edhans_0-1606773395157.png

It cannot sort the axis of a chart if the axis is numerical, it always goes ascending.

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

In the upper right of the chart, click on the ellipses and the sort icon and sort by the hours column, descending. It has to be text though.

edhans_0-1606773395157.png

It cannot sort the axis of a chart if the axis is numerical, it always goes ascending.

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.