Forum Discussion

anithaMallam's avatar
anithaMallam
Icon for Helper III rankHelper III
5 years ago

Need Help on Circular Dependencies

Hi All,

        i need to create a calculated column in SSAS Tabular Model for the below Usecase

 

QuantityInKg:
For RMA (i.e TType = 'RMA-Domestic') OR (TtType = 'RMA-Exports')) when Secondary Qty is null then PrimaryQuantity/ConversionFactor
Else if item like 'F%' then SecondaryQuantity else Null
PrimaryQuanity is available in Sales Table),
SecondaryQuanity (qty in kg) is available in Sales Table),
ConversionFactor is available in Items table

 

I created the column with the logic as below

=if(Sales[SecondaryFulfilledQuantity]=blank(),DIVIDE(Sales[PrimaryFulfilledQuantity],LOOKUPVALUE(Items[ConversionFactor],Items[HdaaS_ItemHashKey],SalesReport[HDaaS_ItemHashKey]),0),if(left(Sales[ItemKey],1)="F",Sales[SecondaryFulfilledQuantity],blank()))

 

Based on the Above iam trying to create another Calculated column for other usecase which is 

QuantityInSQM = QuantityInKg / (ProductGSM /1000)

SecondaryQuanity (qty in kg) is available in Sale Table),
ProductGSM is available in Items table

 

i created a formula as  =DIVIDE(SalesReport[PrimaryFulfilledQuantity],DIVIDE(LOOKUPVALUE(Items[ConversionFactor],Items[HdaaS_ItemHashKey],SalesReport[HDaaS_ItemHashKey]),1000,0),0) .but iam getting Circular dependency error as below

Could some one please help me on this.

 

Regards

Anitha

2 Replies