cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cmcmahan
Resident Rockstar
Resident Rockstar

Count of Only Most Recent Value

I'm guessing that I'm missing something obvious, but I have survey data and the relevant columns are set up like this:

 

UserSurvey_DateResponse
Alex20221201Yes

Barry

20221225Maybe
Carl20221226No
Alex20220601No
Barry20220625Maybe

 

I would like to get a graph that looks like this, counting the number of users who answered each category:

Cmcmahan_0-1680792546122.png

 

 

My issue is that if I use straight DISTINCTCOUNT, if a user changed their answer between surveys in a specified year, it will count them in both response groups.  I have a business requirement to use the most recent answer.

 

If I try to use TOPN on the survey date, it gets only the most recent survey date for all users, in the above case, only counting Carl's single answer.  What I want is to TOPN each user's answers.

 

I'm guessing there's some solution with SUMMARIZECOLUMNS that I'm not seeing, but any guidance would be appreciated.

1 ACCEPTED SOLUTION
1 REPLY 1

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors