Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have two tables Programs and Benefits. There are people I need to count uniquely based on conditions in each table
Programs: person is active = 1 and Program = XYZ and startdate = MM/DD/YYY
Benefits: person is active = 1
A person may be in either or both tables and I need to get a unique count of total people from both tables with the above conditions.
I don't want to count only the people in both tables. I need to count uniquely all people. I could do this in SQL but haven't been able to crack it in Power BI.
Solved! Go to Solution.
HI so I cracked it.. one thing to mention in Variables you can't go off another variable.
If you give someone a fish then you only give them one meal, but if you teach them how to fish then they can feed themselves and teach others for a lifetime. I prefer to teach members on this forum techniques rather give full solutions and do their job. You can then adapt the technique for your solution, learn some DAX skills for next time and soon become a Power BI Super User like me. 😀
Click here to down load an example
The Program table with people and colours (red, green).
The Benefits table with people and colours (small, medium, large).
The answer has the number of red or small people.
You should be able to easily learn the technique and adapt it to your solution from this example
Thanks for reaching out for help.
I put in a lot of effort to help you, now please quickly help me by giving kudos.
Remeber we are unpaid volunteers and here to coach you with Power BI and DAX skills and ttechniques, not do the users job for them !
So plaase click the thumbs up and accept as solution button.
One question per ticket please. If you need to extend your request then please raise a new ticket.
You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you !
Well it is getting me closer.. this is my formula.. Note the Person code is derived from a 3rd table. I'm getting the error: "A function 'PLACEHOLDER' has been used in a TRUE/FALSE expression that is used as a table filter expresssion. This is not allowed"
HI so I cracked it.. one thing to mention in Variables you can't go off another variable.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |