Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have a table like this
The data for actual will be from another table and keyed on the Product/Colour
What is the best method to calculate the actual ?
Thanks in advance
Solved! Go to Solution.
Hi @owenmdavies,
If the target table only has one match record, I think lookupvalue should be simple to get result.
If it has multiple records can match the conditions, you can try to sumx function.
Sample:
Calculate column Single= Lookupvalue(Target[Actual],Target[Product], Product[Product],Target[Color],Product[Color]) Total= SUMX(FILTER(ALL(Target),Target[Product]=EARLIER(Product[Product])&&Target[Color]=EARLIER(Product[Color])),[Actual])
Regards,
Xiaoxin Sheng
Hi @owenmdavies,
If the target table only has one match record, I think lookupvalue should be simple to get result.
If it has multiple records can match the conditions, you can try to sumx function.
Sample:
Calculate column Single= Lookupvalue(Target[Actual],Target[Product], Product[Product],Target[Color],Product[Color]) Total= SUMX(FILTER(ALL(Target),Target[Product]=EARLIER(Product[Product])&&Target[Color]=EARLIER(Product[Color])),[Actual])
Regards,
Xiaoxin Sheng
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.