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! Request now
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!
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.