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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I need help with DAX query to SUM the Amount
Where Purchase Type = Online
And
Where Purchase Type = Shop
Solved! Go to Solution.
pls try this'
m1 = CALCULATE(SUM('table'[Amount]), 'table'Purchase Type = "Online")
m2 = CALCULATE(SUM('table'[Amount]), 'table'Purchase Type = "Shop")
Hi @vtechBI
If I understood correctly your request, the formula :
_Sum = calculate (Sum('yourtable[amount], 'yortable'[Purchase Type] = "Online" || 'yortable'[Purchase Type]="Shop"
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
pls try this'
m1 = CALCULATE(SUM('table'[Amount]), 'table'Purchase Type = "Online")
m2 = CALCULATE(SUM('table'[Amount]), 'table'Purchase Type = "Shop")
It worked..thanks.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Please try the below measure.
Sales = CALCULATE(SUM(Sales), Purchase Type = "Online" || Purchase Type = "Shop")
Best regards,
Ismail | MiTutorials
Explore over 200+ Power BI tutorials and enhance your skills!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.