Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Dear Expert,
Please help to sort the staff experience bucket (Years) in Chronological order for the graph.
I have made a new column in my fact table as "Sort_Year" by using DAX.
However when I used the "SORT by Column" option under column tools to sort the graph it gives circular dependency error.
Kindly assist.
Circular Reference Error
DAX used to create calculated column in Fact Table
Graph made using FACT table, Experience buckets and Count of Staff
Solved! Go to Solution.
Hi @Enan ,
A circular dependency is detected whenever two objects reference each other, in such a way that Power BI cannot process the objects.
From the screenshot, it looks like you created your Sort column based on the original EXP(groups) column and want to rely on the created Sort column to sort the EXP(groups) column, which will create a circular dependency, please consider using a column unrelated to EXP(groups) to sort it. There is another simple way to create a Sort Column in PowerQuery
For more details, please refer to:
Avoiding circular dependency errors in DAX - SQLBI
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Enan ,
A circular dependency is detected whenever two objects reference each other, in such a way that Power BI cannot process the objects.
From the screenshot, it looks like you created your Sort column based on the original EXP(groups) column and want to rely on the created Sort column to sort the EXP(groups) column, which will create a circular dependency, please consider using a column unrelated to EXP(groups) to sort it. There is another simple way to create a Sort Column in PowerQuery
For more details, please refer to:
Avoiding circular dependency errors in DAX - SQLBI
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
when you say you created a column, how did you do that?
if you create a new table, create an order list for your fields, join this to the original table then bring this through the sort order to the current table as a calculated using something like calcualte(max(table name,order field name))
you should be able to sort on that,
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Hi,
Thank you for the guidance,
However i did not understand, can you please explain.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
35 |
User | Count |
---|---|
95 | |
79 | |
52 | |
49 | |
47 |