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! Learn more
Hello, having an issue trying to figure this out. I am trying to recreate an IF statement in Power BI using DAX. I have the IF measure created, but not exactly sure how to SUM the result of the IF measure.
I have Products listed, Store A Volume and Store B Volume.
My IF measure is: IF([Total Store B Volume] > [Total Store A Volume], [Total Store B Volume], [Total Store A Volume])
I am looking to SUM the Revised Volume Column. Currently the total is 302, but I need it to reflect the Revised Amount total which is 57, not 302.
Can someone direct me on how to accomplish?
Solved! Go to Solution.
Hi @PM_2078
As I understand it, your "Total Store A Volume" and "Total Store B Volume" are two measures. Here is my trying.
Total Store A Volume and Total Store B Volume:
Total Store A Volume = SUM([Store A Volume])
Total Store B Volume = SUM([Store B Volume])
Then I created a measure as follows.
Revised Volume Total =
SUMX(
'Table',
IF(
[Total Store B Volume] < [Total Store A Volume],
[Total Store B Volume],
[Total Store A Volume]
)
)
Result:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @PM_2078
As I understand it, your "Total Store A Volume" and "Total Store B Volume" are two measures. Here is my trying.
Total Store A Volume and Total Store B Volume:
Total Store A Volume = SUM([Store A Volume])
Total Store B Volume = SUM([Store B Volume])
Then I created a measure as follows.
Revised Volume Total =
SUMX(
'Table',
IF(
[Total Store B Volume] < [Total Store A Volume],
[Total Store B Volume],
[Total Store A Volume]
)
)
Result:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What's the reason for using measures? Is the Total Store volume impacted by user filters?
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.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 10 | |
| 9 |