Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
HowardFrazier76
Frequent Visitor

Excel to DAX: converting SUMIFS structured references

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 

1 ACCEPTED SOLUTION
AilleryO
Memorable Member
Memorable Member

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

View solution in original post

2 REPLIES 2
HowardFrazier76
Frequent Visitor

Thanks 

 

AilleryO
Memorable Member
Memorable Member

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors