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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Settha
Regular Visitor

Can't sort from custom index column

I have data column as "Sale State". In the visualize I want to sort 

- Qualify 10%   = 6
- Develop 20% = 5
- Solution 40% = 4
- Proof 60%      = 3
- Close 80%      = 2
- Invoice 100%  = 1
- Lost 0%           = 7

I create custom colum as "Sale State Index" and sort "Sale State" from "Sale State Index" but the Power BI show error "Filed to save modifications to the server. Error returned: A circular dependency was detected"

 

Please help me fix this error.2021-11-24_11-13-03.png2021-11-24_11-10-45.png

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Settha 

 

That error is because those the Sale State Index is related to Sale State, Try to add the Sale State Index column in Power Query rather than DAX.

 

Or create a table with dax by using ADDCOLUMN and VALUES([Sale State]) dax functions then relate a new table with the main table, and use Sale State column from a new table in your visuals.

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

Hi @Settha 

 

That error is because those the Sale State Index is related to Sale State, Try to add the Sale State Index column in Power Query rather than DAX.

 

Or create a table with dax by using ADDCOLUMN and VALUES([Sale State]) dax functions then relate a new table with the main table, and use Sale State column from a new table in your visuals.

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.