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
Hi guys,
Data is stored in below formats but I have to count at summary 2 level if units>0.
| Raw data | |||
| Code | Units | ||
| AP50002862105 | 1 | ||
| AP50002862105 | -1 | ||
| AP52001160899 | 3 | ||
| BI80000160943 | 6 | ||
| I have to count at Code level if units>0 | |||
| Code | Units | final output | |
| AP50002862105 | 0 | 0 | |
| AP52001160899 | 3 | 1 | |
| BI80000160943 | 6 | 1 | |
| 2 |
Please suggest. Thanks a lots.
@Tanushree_Kapse @amitchandak @Greg
Solved! Go to Solution.
Hi @Anonymous ,
Use these measures:
First calculate the count:
Hi @Anonymous ,
Please find the Screenshot:
Thanks for reply.
I have to count >0 units not >1 units.
I have applied the logic already as you mentioned but when I check at code level it is counting where units is 0 as well . like in table 2. first code having units 0 idealy count should not happen at that row.
please check
Hi @Anonymous ,
Use these measures:
First calculate the count:
Thanks a lot Tanu,
You are super excellent. Salut you. Thank you so much for such a great support.
Always a pleasure!😊
Now I got what I was looking for.
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 |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |