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 all,
i hope someone could help me with my problem. I created a new measure like the following....
| Opportunity | Total Count Product Groups (based on opportunity products) | |
| A | 1 | |
| B | 4 | |
| C | 2 | |
| D | 6 | |
| E | 2 | |
| F | 1 | |
| G | 4 | |
| H | 4 | |
| Result should be | ||
| Count opportunity products with different equal Product groups | ||
| 2 Opportunities with 2 different PG | ||
| 3 Opportunities with 4 different PG | ||
| 1 Opportunity with 6 different PG | ||
| etc...... |
Solved! Go to Solution.
You can use this to get the count of those with 2, for example.
Opps with 2 = COUNTROWS(FILTER(DISTINCT(Table[Opportunity]), [Total Count Product Groups] = 2))
To get a table with all the counts, you can make a calculated table of numbers called "Count" with GENERATESERIES(1, 10, 1) for example and use that in a visual, and then use SELECTEDVALUE(Counts[Value]) in place of 2 above.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi Pat,
thanks it works!
Thanks for your support!
Hi @Levo_242 ,
Could you please mark the helpful post as Answered since your problem has been resolved? It will help other members in the community find the solution easily if they face the similar problem with you. Thank you.
Best Regards
Community Support Team _ Rena Ruan
If this post helps, then please consider Accept it as the solution to help the other members find it more.
You can use this to get the count of those with 2, for example.
Opps with 2 = COUNTROWS(FILTER(DISTINCT(Table[Opportunity]), [Total Count Product Groups] = 2))
To get a table with all the counts, you can make a calculated table of numbers called "Count" with GENERATESERIES(1, 10, 1) for example and use that in a visual, and then use SELECTEDVALUE(Counts[Value]) in place of 2 above.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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 |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 25 |