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 need to create a new measure withim my 'comp_spend' table whereby it sums the total value based on whether or not a flag = 'Y' across 3 different tables.
Example logic that I am trying to achieve:
Total_value_removed = calculate(sum(comp_spend[comp_value]), 'app_new'[remove_flag]="Y" OR 'app_old'[remove_flag]="Y" OR 'app_changed'[remove_flag]="Y")))
The 3 tables app_new, app_old and app_changed have all been joined onto the comp_spend table.
Solved! Go to Solution.
You should just be able to change the OR to ||
Total_value_removed =
CALCULATE (
SUM ( comp_spend[comp_value] ),
'app_new'[remove_flag] = "Y"
|| 'app_old'[remove_flag] = "Y"
|| 'app_changed'[remove_flag] = "Y"
)
You should just be able to change the OR to ||
Total_value_removed =
CALCULATE (
SUM ( comp_spend[comp_value] ),
'app_new'[remove_flag] = "Y"
|| 'app_old'[remove_flag] = "Y"
|| 'app_changed'[remove_flag] = "Y"
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!