Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi there,
I have a card in my report which shows the person with the highest referrals. My formula is:
Highest Referrals by Assessor =
MAXX(
KEEPFILTERS(VALUES('GCRTDatabase'[Referring Assessor])),
CALCULATE([Total Referrals])
)
I want to show who the referring assessor is, either in this box, or in a separate box.
Help!
Jemma
Solved! Go to Solution.
So, perhaps something like:
Highest Assessor =
VAR __table = VALUES('GCRTDatabase'[Referring Assessor])
VAR __table1 = ADDCOLUMNS(__table,"__referrals",CALCULATE([Total Referrals]))
VAR __max = MAXX(__table1,[__referrals])
RETURN
MAXX(FILTER(__table1,[__referrals]=__max),[Referring Assessor])
So, perhaps something like:
Highest Assessor =
VAR __table = VALUES('GCRTDatabase'[Referring Assessor])
VAR __table1 = ADDCOLUMNS(__table,"__referrals",CALCULATE([Total Referrals]))
VAR __max = MAXX(__table1,[__referrals])
RETURN
MAXX(FILTER(__table1,[__referrals]=__max),[Referring Assessor])
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
117 | |
101 | |
71 | |
61 |