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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello community,
I need help with the following query:
I need to calculate the count of ID where, if Directors is less than 5 then add it into managers. That is as shown below image manager's count should be 6.
Thanks in advance.
Regards
Solved! Go to Solution.
Hi @Anonymous ,
Can you provide some example data from your table?
Jori
Hi @Anonymous ,
This should work.
Add a new column in your table:
Create a new table:
Create two relationships between the tables:
Then create this measure:
This will give the following result:
Jori
If I answered your question, please mark it as a solution to help other members find it more quickly.
Thank you for the solution. Works for me 👍
Really appreciate it!
Hi @Anonymous ,
Can you provide some example data from your table?
Jori
Here is the sample data:
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 55 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 113 | |
| 105 | |
| 39 | |
| 35 | |
| 26 |