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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
aoc
Frequent Visitor

Sort Month Name by Month Year ID Column

Hi all,

 

I am looking to sort my line graph by Month Name but have multiple years worth of data. Currently it is sorted by Month number and the most recent year is being sorted currectly, but the past year isnt. I have created an ID column with year and month number concatenated, but cannot sort by it since I would like the graph to show only the Month name, not the month-year (please see attached photo).

 

calendar.PNGlinechart.PNG

Any Solutions?

3 REPLIES 3
TypimWuerfel
New Member

HI @aoc,

it is possible to sort a column by another column.

 

step 1: select your column "Month Name"

step 2: go to column tools

step 3: sort by column (select your MonthId)

TypimWuerfel_0-1663794059940.png

 

After that it should work.
____________________________

You want more helpful tipps and tricks like that?
Please subscribe: https://www.youtube.com/channel/UC2lAgCgfyLCHsRv0h-ETBWQ 

Thank you for your response,

 

I have it being sorted by Month ID right now, and am getting the sorting shown in the photo.

Hi @aoc ,

Could you please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.