Forum Discussion
Calculated column contain multiple result
- 5 years ago
Saxon10 add a new column in reporting table using the following expression, assuming these tables have a relation on Items column
Supplier = VAR __supplier = CALCULATE ( MAX ( 'DataTable'[SUPPLIER] ), RELATEDTABLE ( 'DataTable' ) ) RETURN COALESCE ( __supplier, "NA" )Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- Anonymous5 years ago
Hi Saxon10 ,
Based on your description, you can create a column as follows.
Column = LOOKUPVALUE(Data[SUPPLIER],Data[ITEM],[ITEM],"NA")Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Saxon10 ,
Based on your description, you can create a column as follows.
Column = LOOKUPVALUE(Data[SUPPLIER],Data[ITEM],[ITEM],"NA")Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Saxon105 years agoPost Prodigy
Thanks for your reply and simple way of your solution.