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 eveyone,
I'm trying to dynamically show in a card visualisation which team member has the most cases due today.
So for today I want to show "Zoe". The TotalCasesDueToday is a measure...
TotalCasesDueToday = CALCULATE(
SUM('Cases'[TotalActiveCases]),
FILTER('Cases',[resolveby]=Today())
)
I hope this is enough detail to go off..?
Many thanks for any help you can give.
xXx
Solved! Go to Solution.
I have solved this using RANKX
MostCasesDueTodayName = RANKX(ALL('Cases'[owneridname]),CALCULATE(SUM('Cases'[TotalActiveCases]),'Cases'[resolveby]=TODAY()))
I substituted the measure for the original column and filter instead of the measure I'd built to show that.
I then used a multi row card and put a filter on to show where MostCasesDueTodayName = 1
@Anonymous
Hi!!, you can obtain this using this dax in a measure
NameTop = CONCATENATEX ( TOPN ( 1, 'Cases', [TotalCasesDueToday], DESC ), 'Cases'[Name], "." )
ConcatenateX will help you when have 2 or more names in TOP1.
Thanks for replying so quickly!
This isn't quite right as it shows a list of everyone concatenated together, by overall total and not the total for today.
@Anonymous
Please share sample data to adjust my answer to this.
I have solved this using RANKX
MostCasesDueTodayName = RANKX(ALL('Cases'[owneridname]),CALCULATE(SUM('Cases'[TotalActiveCases]),'Cases'[resolveby]=TODAY()))
I substituted the measure for the original column and filter instead of the measure I'd built to show that.
I then used a multi row card and put a filter on to show where MostCasesDueTodayName = 1
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 |
---|---|
108 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |