Forum Discussion
Saxon10
Post Prodigy
4 years agoSUMIFS with multiple columns with DAX
Hi, How can I do sumifs in Power BI based on the below mentioned data. In Excel I am apply the following formula =IF(OR($C3="Not Pair",SUMIFS(D$3:D$73,A$3:A$73,A3,C$3:C$73,C3)=1),$B3,"Not ...
- 4 years ago
You can't have two columns with the same name, so I change the first to "Colour" and second to "Code":
Result = VAR SumIfs = CALCULATE ( SUM ( Table1[Unique Count] ), ALLEXCEPT ( Table1, Table1[Item], Table1[Code] ) ) RETURN IF ( Table1[Code] = "Not Pair" || SumIfs = 1, Table1[Colour], "Not Okay" ) - 4 years ago
Hi Saxon10 ,
Please add the ROUND function to the formula of AlexisOlson.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AlexisOlson
Super User
4 years agoSaxon10 ROUND is a good modification but rounding to zero decimal places might be a bit too round. If you run into trouble, try ROUND ( SumIfs, 1 ) instead.
Saxon10
Post Prodigy
4 years ago