Forum Discussion
SUMIFS DAX Equivalent
- 2 years ago
Any of the following would work...
Sum1 = SUMX( FILTER('Table', 'Table'[Status] IN {"OK to Pay", "Paid"}), 'Table'[Amount] )Sum2 = SUMX( FILTER('Table', 'Table'[Status] = "OK to Pay" || 'Table'[Status] = "Paid"), 'Table'[Amount] )Sum3 = CALCULATE( SUM('Table'[Amount]), OR('Table'[Status] = "Ok to Pay", 'Table'[Status] = "Paid") )
Hi ofi2023 ,
Your solution is great, ryan_mayu / jgeddes . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.
Please try:
Create a measure:
Total Amount = SUMX(
CALCULATETABLE(
'Table',
'Table'[Status] IN {"OK to Pay", "Paid"}
),
'Table'[Amount]
)
In the final page the effect is shown below:
The pbix file is attached.
If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
- ofi20232 years agoRegular Visitor
This is a great alternative! It wasn't exactly what I was looking for since it separated the status instead of combining them but this will be useful for other situations.