Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
First ever post.
I'm struggling to get the right formula for my solution.
I have a calculated column which follows the logic:
Products bought =
IF( A = 0 && B = 1, 1, 0)
I get the correct output:
Product A 1
Product B 2
Product C 1
Client is asking if the product appears just once, show it as 1, not a 2, so it would be like
Product A 1
Product B 1
Product C 1
Since it's a calculated column, i tried to use this formula for a solution:
IF(SUMX('Table','Table'[Products Bought]) >= 1, 1, 0)
Now I get the proper counts, but I can't get to show the result as a GRAND total or SUB Total.
How do I fix this?
Does my logic make sense?
Thank you in advance DAX guru's!
Solved! Go to Solution.
Hi @Anonymous
Maybe you can try:
SUMX(VALUES('Table'[Product]),[Measure])Where [Measure]=IF(SUMX('Table','Table'[Products Bought]) >= 1, 1, 0)
Hi @Anonymous
Maybe you can try:
SUMX(VALUES('Table'[Product]),[Measure])Where [Measure]=IF(SUMX('Table','Table'[Products Bought]) >= 1, 1, 0)
Thank you very much! Worked like a charm 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 10 | |
| 8 |