Forum Discussion
Multiply two values based on conditions from multiple tables
Hi,
In the MPP table, write these calculated column formulas
Fabric type = RELATED(Products[FabricType])Factor = LOOKUPVALUE(CF[Factor],CF[FabricType],MPP[Fabric Type],CF[Material],MPP[Material])
Hope this helps.
- Anonymous4 years agoNot applicable
Hi Ashish,
Thanks for your help!
If I do this, then it returns an #ERROR, stating "A table with multiple values was given while a singular value was expected" (translated).
What should i do differently?
Thanks again.
- Ethan964 years ago
Resolver I
Hi, Anonymous
I don't see obvious problems in the formula, I doubt it's a problem with the data.
Please check the following points
1. Ids in 'Table 2'[ProductID] are unique
2. No invalid data rows (null values) in your original model
3. There is only one corresponding factor value for each material and fabric type in ‘Table 3’
Regards,
Ethan
- Ashish_Mathur4 years ago
Super User
Hi,
This error means that in the CF column, there are duplicats appearing in the Fabric type and/or Material columns. Please share a representative dataset and on that one, show your expected result so that i can share the appropriate formula.