Forum Discussion
Using inactive relationship cannot sort due to circular dependency
- 5 years ago
Hi aseagull ,
Firstly, you could create a calculated table.
Table 2 = ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[ID], 'Table'[AW], 'Table'[FW] ), "AW_Order", LOOKUPVALUE( 'Order, Status'[Order], 'Order, Status'[Status], 'Table'[AW] ), "FW_Order", LOOKUPVALUE( 'Order, Status'[Order], 'Order, Status'[Status], 'Table'[FW] ) )Then, you can use the "Sort by column" feature.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can only sort a single column using a single sort column. The easiest "solution" is to load 2 sets of columns in the same table if needed.
the ALLEXCEPT is removing filters. It is hard to say why it works vs other options without seeing the workbook (I am on iPad).
- aseagull5 years agoHelper IV
Matt, thanks for the quick reply! I want to be able to sort both the FW and the AW columns on the same sort order. One of them (AW) is linking to the sorting table via an active relationship, so I'm able to pull in the linked field in my viz. I also want to sort the FW field on that same sort order. It might make more sense once you're able to look at the linked file.
Regarding ALLEXCEPT, I guess I don't understand why I need anything like that. I thought all you needed to do, to use an inactive relationship, was evaluate an expression in the context of that relationship. ?