Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.