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
I am trying to convert a SUMIFS excel statment to DAX
I have
=SUMIFS(mast[PHTUTS],mast[PHPSTF],"10")+SUMIFS(mast[PHTUTS],mast[PHPSTF],"11") and I am tying to convert into a DAX statment
Solved! Go to Solution.
Hi,
According to what I can see, if you just create a table on your report with mast[PHPSTF] on the lines,
and with mast[PHTUTS] in values, you should have the total for each value (10,11...).
Otherwise in DAX it will look like :
CALCULATE( SUM(mast[PHTUTS]),mast[PHPSTF]=10) or
CALCULATE( SUM(mast[PHTUTS]),mast[PHPSTF]="10") depending on type (numeric or text).
or could be :
CALCULATE( SUM(mast[PHTUTS]),mast[PHPSTF] IN {10,11})
Hope it helps
Thanks
Hi,
According to what I can see, if you just create a table on your report with mast[PHPSTF] on the lines,
and with mast[PHTUTS] in values, you should have the total for each value (10,11...).
Otherwise in DAX it will look like :
CALCULATE( SUM(mast[PHTUTS]),mast[PHPSTF]=10) or
CALCULATE( SUM(mast[PHTUTS]),mast[PHPSTF]="10") depending on type (numeric or text).
or could be :
CALCULATE( SUM(mast[PHTUTS]),mast[PHPSTF] IN {10,11})
Hope it helps
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.