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,
I am trying to male a report with buckets for our managers according to the performance they had last quarter. The goal is to make a matrix where I can report the number of managers belonging to each group according to how many leads they generated.
To do this, I started by setting up a new table which looks like this:
After that I added a measure counting the number of unique leads:
Solved! Go to Solution.
Hi @Berl21
I assume that you will be slicing by 'Bucket Table'[# Leads] column. You can try the following measure
Leads Group =
VAR LowerLimit =
SELECTEDVALUE ( 'Bucket Table'[Lower Bucket] )
VAR UpperLimit =
SELECTEDVALUE ( 'Bucket Table'[Upper Bucket] )
VAR T1 =
VALUES ( Leads_Table[LeadRecordId__c] )
VAR T2 =
ADDCOLUMNS ( T1, "@Leads", [Unique Leads] )
VAR T3 =
FILTER ( T2, [@Leads] >= LowerLimit && [@Leads] <= UpperLimit )
RETURN
COUNTROWS ( T3 )
@tamerj1
Here you go for the desired result:
Expected result:
As a new user it seems I can't upload a pbix file here. Maybe I am wrong about this, can you let me know how that works? Unfortunately Dropbox is also not cooperating as of now.
try to upload to upload to any file transfer service and share the link.
Hi @tamerj1
not sure how you mean the slicing? For now, it is uneffective:
The measure in this graph should be the number of unique managers, right? I used distinctcount for this one.
@Berl21
Would you please present sample data and the expected result based on the same sample? Otherwise please try the following
Unique ZHs =
SUMX (
VALUES ( 'Bucket Table'[Bucket] ),
VAR LowerLimit = 'Bucket Table'[Lower Bucket]
VAR UpperLimit = 'Bucket Table'[Upper Bucket]
VAR T1 =
ADDCOLUMNS ( VALUES ( Leads_Table[ManagerID] ), "@Leads", [Unique Leads] )
VAR T2 =
FILTER ( T1, [@Leads] >= LowerLimit && [@Leads] <= UpperLimit )
RETURN
COUNTROWS ( T2 )
)
Hi @Berl21
I assume that you will be slicing by 'Bucket Table'[# Leads] column. You can try the following measure
Leads Group =
VAR LowerLimit =
SELECTEDVALUE ( 'Bucket Table'[Lower Bucket] )
VAR UpperLimit =
SELECTEDVALUE ( 'Bucket Table'[Upper Bucket] )
VAR T1 =
VALUES ( Leads_Table[LeadRecordId__c] )
VAR T2 =
ADDCOLUMNS ( T1, "@Leads", [Unique Leads] )
VAR T3 =
FILTER ( T2, [@Leads] >= LowerLimit && [@Leads] <= UpperLimit )
RETURN
COUNTROWS ( T3 )
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 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 29 | |
| 21 | |
| 12 | |
| 12 |