Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, hopefully someone can help me
I have a table in my Tabular Model that looks like the below
Date | Description | Calls |
01/01/2020 | IT | 345 |
01/02/2020 | Legal | 23 |
01/02/2020 | Helpline | 2345 |
What I want to build is a measure that just brings me the Description with the highest Calls in the period. So for the above, the Measure would show "Helpline" as it has 2345 calls.
I have created the below but it doesn't work for me and gives me the wrong description - can anyone help?
ParallelName:=CALCULATE(LASTNONBLANK('Productivity'[Description],0),FILTER(VALUES('Productivity'[Description]),rankx(all('Productivity '[Description]),[Calls],,ASC) = 1 ))
Solved! Go to Solution.
Hi @Anonymous ,
this should answer your question:
Please give kudos to the original responder in the linked post.
@Anonymous , Why asc sort when you need highest?
try
DRank = RANKX(all(Table[Description]),[Calls])
Rank 1 top = maxx(filter(VALUES(Table[Description]),[DRank]=1),Table[Description] )
or
Top 1 Rank = CALCULATE(max(Table[Description]),TOPN(10,all(Table[Description]),[Calls],DESC),VALUES(Table[Description]))
Hi @Anonymous ,
this should answer your question:
Please give kudos to the original responder in the linked post.
Hi, this works perfect for me thank you.
What would be the best way of using this to get the 2nd highest SUM?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |