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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors