Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Show name of who has most cases

Hi eveyone,

 

I'm trying to dynamically show in a card visualisation which team member has the most cases due today.

Capture.PNG

 

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

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

 

Capture.PNG

I then used a multi row card and put a filter on to show where MostCasesDueTodayName = 1

View solution in original post

4 REPLIES 4
Vvelarde
Community Champion
Community Champion

@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.




Lima - Peru
Anonymous
Not applicable

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.

 

 

Image.png




Lima - Peru
Anonymous
Not applicable

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.

 

Capture.PNG

I then used a multi row card and put a filter on to show where MostCasesDueTodayName = 1

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.