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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
WiesHerd
New Member

Sorting Year - X Axis

I am not sure if I am posting in the correct area but I have a SharePoint list that I am visualizing.  Very simple list just has two columns a Year and a dollar value. Not sure what I did but the Year order is not correct.  For the life of me I cannot figure out how to resort this so that the Years are in the correct order.  Can someone please give a kind nudge in the right direct?  I apologize but more recently I have been playing with Tableau and it has been a while since I got into PowerBI.  I hope to get there soon 🙂

 

WiesHerd_1-1675699272428.png

 

 

3 REPLIES 3
WiesHerd
New Member

This is created through SharePoint list through the "visualize this list option".  We do not have a PowerBI license this is just a free way of visualizing the data through SharePoint. The Year is a Title colulmn so I suspect this is why it is not a whole number it is just text and I cannot seem to sort it.  I could have sworn that I have seen the sort option before but I just cannot remmeber how I got there.  Any other suggestions?

WiesHerd_0-1675772044191.png

 

v-xinruzhu-msft
Community Support
Community Support

Hi @WiesHerd 

Based on the picture you have provided, your data type of "Year" field is not  Whole number, the whole number type will have a summation flag before the field.

vxinruzhumsft_0-1675734899001.png

 

You need to change the "Year" data type to Number first

vxinruzhumsft_1-1675734967229.png

Then the visual then automatically sorts the years in increasing order

vxinruzhumsft_2-1675735098195.png

Best Regards!

Yolo Zhu

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

 

grantsamborn
Solution Sage
Solution Sage

Hi @WiesHerd 

When your visual is selected, in the top right corner you should see "..." (More options).  You should then see "Sort Axis".

Note that if [Year] is a whole number, you may need to convert it to text.

Let me know if that helps.

 

pbix: ConversionRate.pbix

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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