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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
User5231
Helper II
Helper II

SUMIFS to Dax

I previously posted about this and got a solution, but really still didn't have what I needed.

How can I replicate this SUMIFS in Dax?

 

Previous solution did not have the "Part" Criteria.

 

If there were not multiple parts per date, solution is...

 

=CALCULATE(SUM(Data[Qty]),FILTER(Data,Data[Scheduled Finish Date]<EARLIER(Data[Scheduled Finish Date])&&Data[Actual Finish]>=EARLIER(Data[Scheduled Finish Date])))

 

How do I add a third criteria that says sum qty on dates less than date in that row && actual finish >= the schedule date && unique to part number??

 

Thanks

SUMIFS.png

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@User5231 Can you try below dax in your calculated column

 

PastDue =

CALCULATE(
SUM('Table'[Qty]),
FILTER(ALL('Table'),'Table'[Schedule finish]<EARLIER('Table'[Schedule finish])),
FILTER(ALL('Table'),'Table'[Actual finish]>=EARLIER('Table'[Schedule finish])),
FILTER(ALL('Table'),'Table'[Part]=EARLIER('Table'[Part])
)
)
 
negi007_1-1612065621240.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

2 REPLIES 2
negi007
Community Champion
Community Champion

@User5231 Can you try below dax in your calculated column

 

PastDue =

CALCULATE(
SUM('Table'[Qty]),
FILTER(ALL('Table'),'Table'[Schedule finish]<EARLIER('Table'[Schedule finish])),
FILTER(ALL('Table'),'Table'[Actual finish]>=EARLIER('Table'[Schedule finish])),
FILTER(ALL('Table'),'Table'[Part]=EARLIER('Table'[Part])
)
)
 
negi007_1-1612065621240.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Yes I figured that out as well! Thanks for the input!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.