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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

The equivalent Dax version of Excel Sumifs

Hello!

 

In excel I have a SUMIfs. 

 

Col A is employee, B is week number and C is hours. 

 

In column D my sumifs would be:

 

SUMIFS(C:C,A:A,A2,B:B,B2) or sumifs(hours, employee column, A2,week number column, B2)

 

 

EmployeeWeek NumberHours
Dave14
Mark15
Jacob16
Dave26
Jacob15
Jacob24
Mark23

 

I am having desperate trouble replicating this formula in BI.

 

Any tips or help would be greatly appreciated.

 

Thanks

 

WATER

1 ACCEPTED SOLUTION
Anonymous
Not applicable

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 

 

See if this post help out or at least can get you started:

https://community.powerbi.com/t5/Power-Query/Function-Excell-Countifs-in-Power-BI/m-p/708835#M23665

Anonymous
Not applicable

@Anonymous Hi Nick,

 

Many thanks for your help.

 

I was able to solve my issue with a variation of this formula:

 

CALCULATE(SUM(Table1[Hours]), FILTER(Table1, Table1[Employee] = EARLIER (Table1[Employee])), (Table1[Hours]),FILTER(Table1, Table1[Week Range] = EARLIER (Table1[Week Range])), (Table1[Hours]))

 

Many thnaks again

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors