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
elaj
Helper IV
Helper IV

DAX to create a sort column without having ring dependency problem

Hi guys,

 

i try to sort a column by a DAX calculated column wich references the column wich i want to sort.

therefore i get a ring dependency problem.

 

My workaround would be to copy the column and sort it by the sort column.

But i create a lot of copied data if i do so. Do you have another approach for doing that?

 

My code to calculate the sortcolumn:

 

image.png

 

and now i want to sort F5c by F5c_lbl_sort:

 

image.png

 

but i get the ring dependency problem.

 

Is there somehow the possibility to change the DAX formula that i will not get the ring dependency problem?

Or is it maybe easier to calculate the F5c_lbl_sort column in the query editor? I think then i dont have the dependency thing

 

thanks for your answers.

here the pbix

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @elaj,

I think this dependency issue is caused by using the raw field in other fields calculated and invoke this calculated field on raw field operations. (if you keep this scenario, I don't think you can prevent dependency issue appears)

Perhaps you can try to create a new table to extract these fields(use all to extract) and apply custom sorting on new table and link to raw table fields to enable custom sorting.

Custom Sorting in Power BI 

BTW, you can take a look at below blog to know more about circular dependency issue: 

Avoiding circular dependency errors in DAX 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@elaj , you can not use F5c  in F5c_lbl_sort calculation.

You are checking for blank.

Try if you can create a copy of this column in power query and that can help

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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