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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
kfransis
Regular Visitor

"Values in reverse order" in Line chart

can we format the x axis in line chart to show in reverse order?  just like "Values in reverse order" function in excel

6 REPLIES 6
Greg_Deckler
Super User
Super User

M has a List.Reverse function, https://msdn.microsoft.com/en-us/library/mt260764.aspx that you could potentially use to create a column with "reverse" values and set the Sort By by that.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

@kfransis - So, what you can do is to create a new calculated column and do something like (making up numbers) = 3000 - [Value] and then set the Sort By column for your x-axis column to this new custom column.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Thanks for the prompt response...

 

I have tried to reverse the data but it still does not work for me.

 

What I am trying to do is to start the "Y" axis with the lowest number. (see picture)

 

graph.png

@kfransis, I agree with @greggyb, sorry, when you first stated the issue, you mentioned the x-axis which in certain circumstances you can control by sort order. But the y-axis I am not aware of a way to do this, in fact, if you try to set "end value" lower than "start value" in the paint brush, it does not like it and gives you a red outline and does not set it.

 

Would be a good thing to post in Ideas if not there already.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler: Sorry about the confusion...but thanks for all the feedback and comment. much appreciated that.

To my knowledge this isn't possible. The only way to get this would be to create a custom visual or to negate your measure value to plot negative numbers on the standard line chart.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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