Forum Discussion
Circular Dependency why using sort by column
- Anonymous3 years ago
Hi Ezzeldin ,
Please create the 2 columns in power query.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 3 years ago
thank you so much, when I create both columns on the power query it works fine. also, I have done another solution by making both columns reference the ID column not each other.
Hi Ezzeldin ,
I have created a simple sample, please refer to my pbix file.
LEVEL_1 = SWITCH(TRUE(),'Table'[ID]>=250000&&'Table'[ID]<=259999,"Accumulated Depreciation",
'Table'[ID]>=920000&&'Table'[ID]<=929999,"Bank Clearing Accounts",
'Table'[ID]>=100000&&'Table'[ID]<=109999,"Cash &Banks",
'Table'[ID]>=980000&&'Table'[ID]<=989999,"Other clearing Accounts",
BLANK())Column =
SWITCH (
TRUE (),
'Table'[LEVEL_1] = "Accumulated Depreciation", 1,
'Table'[LEVEL_1] = "Bank Clearing Accounts", 2,
'Table'[LEVEL_1] = "Cash &Banks", 3,
'Table'[LEVEL_1] = "Other clearing Accounts", 4,
5
)
When you create a Calculated column in the Report View you will get this error because the column which is created based a Column Cannot Sort the Same column because is Dependent on that Column (with a Formula).
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Ezzeldin3 years agoHelper I
level_1 is created to be used in a P&L visual; so I want when I list level_1 column values in the visual to follow a specific sorting that I specified in the column "Sorting".
for doing so, on the level_1 column, I choose the "Sort by column" option and then choose the "Sorting" column to sort each value in the Level_1 column by the sorting specified in the "Sorting" Column.
after doing so the error of Circular Dependency occurs.