Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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"
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |