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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
newhopepdx
Helper III
Helper III

Line & Stacked Column Chart Problem

I'm displaying Net Income & ROI on y-axis and Cohorts on x-axis. There are no dates in the data, just three tables: Inc, Exp and Cohort, with measures calculating Total Inc, Total Exp, Net and ROI. Tables are related to Cohort. The Cohorts are labeled ASF 01, ASF 02, etc.

Problem:
The graph is displaying data highest ROI to lowest instead of Cohort order. E.g., ASF 08, ASF 04, ASF 09....

What have I missed??

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @newhopepdx ,

 

Thanks for the reply from @parry2k .

 

You want to sort by ASF, right?

 

You are sorting by ROI at this time. Even if you choose to sort by ASF, it will be sorted by the first letter instead of ASF 08, ASF 04, ASF 09 as you want.

 

To sort correctly, you can follow the steps below:

 

This is a sample data set I created myself.

Cohot

ROI

ASF 08

100

ASF 04

200

ASF 09

300

ASF 01

400

ASF 02

500

ASF 03

600

 

Create an Index column in Power Query.

vhuijieymsft_0-1717549704564.png

 

After exiting Power Query, enter the data view, select the Cohot column, and choose to sort by the Index column.

vhuijieymsft_1-1717549704566.png

 

In the chart, choose to sort by the Cohot column in ascending order.

vhuijieymsft_2-1717549713369.png

 

This is the data before sorting.

vhuijieymsft_3-1717549713370.png

 

The final page effect is as follows:

vhuijieymsft_4-1717549725463.png

 

The pbix file is attached.

 

If the problem is not solved successfully, I would be grateful if you could provide me with the pbix file.

 

Remember to remove sensitive data and do not log in to your account in Power BI Desktop when uploading the pbix file.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @newhopepdx ,

 

Thanks for the reply from @parry2k .

 

You want to sort by ASF, right?

 

You are sorting by ROI at this time. Even if you choose to sort by ASF, it will be sorted by the first letter instead of ASF 08, ASF 04, ASF 09 as you want.

 

To sort correctly, you can follow the steps below:

 

This is a sample data set I created myself.

Cohot

ROI

ASF 08

100

ASF 04

200

ASF 09

300

ASF 01

400

ASF 02

500

ASF 03

600

 

Create an Index column in Power Query.

vhuijieymsft_0-1717549704564.png

 

After exiting Power Query, enter the data view, select the Cohot column, and choose to sort by the Index column.

vhuijieymsft_1-1717549704566.png

 

In the chart, choose to sort by the Cohot column in ascending order.

vhuijieymsft_2-1717549713369.png

 

This is the data before sorting.

vhuijieymsft_3-1717549713370.png

 

The final page effect is as follows:

vhuijieymsft_4-1717549725463.png

 

The pbix file is attached.

 

If the problem is not solved successfully, I would be grateful if you could provide me with the pbix file.

 

Remember to remove sensitive data and do not log in to your account in Power BI Desktop when uploading the pbix file.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Thanks All! So simple, so obvious!

Didn't realize that sort option was there.

parry2k
Super User
Super User

@newhopepdx if you click on the 3 dots on the top right corner of the visual, you can change the sort order and how you want to sort the visual. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors