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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
WBADAM03
Frequent Visitor

Column headers out of order

Hi All,

I feel like the biggest moron in the world, but I've been on this one problem for almost an hour with no resolution. 

I have a table with a plan_status column that is text
I have a table with a status_order column that is a whole number
The status order is a DAX column that looks up the string on plan_status and assigns it a numerical number ranging from 1 to 9

The idea is that I have a table with headers that look like this:

The problem is that the headers are out of order! Applied should be first, then canceled, then admitted, then enrolled. Their numerical values calculated in status_order should outline the position.

status sort is a whole number.

I can't seem to figure how how to make it start with 1 and then work it's way up to 9. I can only assume it's sorting the headers by alphabetical order instead of the numerical value.

WBADAM03_0-1714673021127.png

I can only "sort by" acad_plan and "EMPLID" in the visual.

Ironically, one of the graphs correctly orders the headers but I haven't been able to figure out why it works or how to make this table work.


WBADAM03_1-1714673148762.png

Any tips/advice greatly appreciated! 

2 ACCEPTED SOLUTIONS

Hey,

I tried that it and it said it had a circular reference (which I don't understand since all 3 columns are in one table).

I worked around this problem by doing [status order] &" - " & [plan status]" so it sorts the columns alphbetically by the status order, so it works.

View solution in original post

Hi @WBADAM03,

 

It's great that the workaround is working for you. In case you want to know more about circular dependency and see how to go around it, just go through the following post once and let me know if it's of any help to you.

 

https://community.fabric.microsoft.com/t5/Desktop/Sort-Values-from-Calculated-Column/m-p/3862774#M12...




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



View solution in original post

3 REPLIES 3
Alex87
Solution Sage
Solution Sage

Hello,

Go to table view, select your column plan_status, select sort by column status order. Does it help?




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




Hey,

I tried that it and it said it had a circular reference (which I don't understand since all 3 columns are in one table).

I worked around this problem by doing [status order] &" - " & [plan status]" so it sorts the columns alphbetically by the status order, so it works.

Hi @WBADAM03,

 

It's great that the workaround is working for you. In case you want to know more about circular dependency and see how to go around it, just go through the following post once and let me know if it's of any help to you.

 

https://community.fabric.microsoft.com/t5/Desktop/Sort-Values-from-Calculated-Column/m-p/3862774#M12...




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.