Forum Discussion
SUMIFS with multiple columns with DAX
- 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.
Thanks for your respones and sorry for the late reply.
Your solution almost working fine but I recevied incorrect result were the same itms has repeat multiple times
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,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Saxon104 years ago
Post Prodigy
Thanks for your reply and your solution.
Your solution working well. Thank you.
- AlexisOlson4 years ago
Super User
Saxon10 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.
- Saxon104 years ago
Post Prodigy