Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi All,
I need your input as, I want to add two measures based on a simple condition.
Addition =IF(Measure1 >= -1* (Measure2) ,(Measure1 + Measure2),0)
Secondly, should I use measures with Query Name or simple measures names in the formula. Thanks!
Tariq Ashraf
Show the definitions of the measures. Most likely, the measures are written very inefficiently and require a lot of memony because of materialization.
Your measure is really [Addition] = max( [Measure1] + [Measure2], 0 ). Measures should never be preceded by the name of the table they reside in. Columns should always be preceded by their host tables' names. This is the rule in DAX.
@ashrat001 , what is the problem you are facing
Addition =IF([Measure1] >= -1* ([Measure2]) ,([Measure1] +[ Measure2]),0)
or
sumx(values(Table[Some ID]),IF([Measure1] >= -1* ([Measure2]) ,([Measure1] +[ Measure2]),0))
Hi Amit,
This formula is not working.
Balance = If([Meaure1] >= [Measure2], [Measure1] + [Measure2],0)
I'm getting following error:
Couldn't load the data for this visual. There's not enough memory to complete this operation. Thanks!
Tariq
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |