Forum Discussion
Excel to Dax, using sumifs formula
- Anonymous6 years ago
Hi nnouchi ,
Try this Calculated Column
Column =
SWITCH(
TRUE(),'Sales'[Shipped/CSO] = "Shipped", 0,
SUMX(FILTER(Sales,Sales[InvoiceDate]=EARLIER(Sales[InvoiceDate])&& Sales[Branch]=EARLIER(Sales[Branch]) && Sales[Part] = EARLIER(Sales[Part]),Sales[QTY]))
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi nnouchi ,
Try this Calculated Column
Column =
SWITCH(
TRUE(),
'Sales'[Shipped/CSO] = "Shipped", 0,
SUMX(FILTER(Sales,Sales[InvoiceDate]=EARLIER(Sales[InvoiceDate])&& Sales[Branch]=EARLIER(Sales[Branch]) && Sales[Part] = EARLIER(Sales[Part]),Sales[QTY]))
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Harsh,
The result is the same, which is making me question whether the difference between indexes is causing the difference in output.
I believe this is the correct answer, so I will be accepting this for the thread.
Thank you for your efforts.
Nicolas