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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mat42
Helper III
Helper III

Sort by Column Problem

I have a table of data that looks similar to this:

 

Item No,Actual QuarterQuarter LagReporting QuarterValue
1Q1NoneQ1100
1Q2NoneQ2200
1Q3NoneQ3300
1Q4NoneQ4400
2Q2NoneQ2111
3Q11Q4555
3Q21Q1666
3Q31Q2777
3Q41Q3888
4Q2NoneQ299
4Q4NoneQ477

 

The data concerns counts of items in a given financial quarter, with some being counted quarterly (items 1 and 3), some being counted annnualy (item 2) and some being counted biannually (item 4). However, Item 3, despite being counted quarterly, is actually in a lag, which means that when we count it in quarter 1, the figure actually pertains to quarter 4.

 

The graph I've put together is a simple column chart using the Reporting Quarter as the axis and Quarter Values as values. The graph is adjusted with a slicer populated by Item No.

 

My problem is that when item 1,2,4 are chosen from the slicer the Reporting Quarters are displayed in the correct order (ascending numerically). Item 3 also displays in the same order...which is incorrect for that item as it needs to start at 4 (the order being 4,1,2,3). Obviously, if I adjust the order to accommodate that item, every other item will be incorrect.

 

I've tried using the 'Order by Column' option and ordering using the 'Actual Quarter' column but PBI doesn't like it, throwing up the 'Sort by another column' error message. I've tried adding in an index column and using that to order by, but it doesn't like that either.

 

Can anyone give me ideas on how to get the graph to display data consistently in the order that it should appear?

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Mat42 ,

Based on your descritption, your expected output may like this:

S1.pngS2.png

 Click the (...) options to sort by asc based on the value field:

sort.png

Attached a sample file in the below, hopes to help you.

 

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

View solution in original post

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @Mat42 ,

Based on your descritption, your expected output may like this:

S1.pngS2.png

 Click the (...) options to sort by asc based on the value field:

sort.png

Attached a sample file in the below, hopes to help you.

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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