The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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"
)