Forum Discussion
aseagull
5 years agoHelper IV
Using inactive relationship cannot sort due to circular dependency
Hello and Happy New Year. I have two columns (FW and AW) with the same type of data (Status), which has its own sort order. So I have 1 active and 1 inactive relationship to that dimension table ...
- 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.
v-lionel-msft
5 years agoCommunity Support
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 Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
aseagull
5 years agoHelper IV
Lionel, thank you! I appreciate this very much. So creating the calculated table effectively "hides" the circularity, I guess? I see this works even skipping the SUMMARIZE step...weird. Thank you again!