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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
cbehanna
New Member

Filter Duplicate Values based on earlier submission

Hi all! Love this community! I'm new here and to PowerBI!

 

I am trying to do something that I haven't quite seen in other support posts. I have data that is coming in via a Microsoft Form. It is connected to PowerBI Desktop via its associated Excel spreadsheet stored in Sharepoint.

 

What I am trying to do is "filter" out duplicate responses so that only the most recent submission of theirs visualizes. Here's an example of my data:

 

Capture.PNG

 

For example, I would only like Tom and Melissa's most recent submissions (based on completion time) to visualize. This data is live and will continue to grow/change with duplicate submissions, so I'm hoping there is a solution via Power Query or DAX to only have the most recent submission, including if they submit any future responses.

 

Thanks for any assistance!

 

1 ACCEPTED SOLUTION
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try this measure:

Check = 
var a = IF(CALCULATE(COUNT('Table'[Name]),ALLEXCEPT('Table','Table'[Name]))>1,1,0)
return
IF(a=1,IF(MAX('Table'[Completion time])=CALCULATE(MAX('Table'[Completion time]),ALLEXCEPT('Table','Table'[Name])),0,1),0)

Then apply it to the original table visual and set Check=0, the result shows:

5.PNG

Here is my test pbix file:

pbix 

Hope this can help.

 

Best Regards,

Giotto Zhi

View solution in original post

2 REPLIES 2
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try this measure:

Check = 
var a = IF(CALCULATE(COUNT('Table'[Name]),ALLEXCEPT('Table','Table'[Name]))>1,1,0)
return
IF(a=1,IF(MAX('Table'[Completion time])=CALCULATE(MAX('Table'[Completion time]),ALLEXCEPT('Table','Table'[Name])),0,1),0)

Then apply it to the original table visual and set Check=0, the result shows:

5.PNG

Here is my test pbix file:

pbix 

Hope this can help.

 

Best Regards,

Giotto Zhi

amitchandak
Super User
Super User

I think you can try lastnonblankvalue, part of Feb 2020 release

https://docs.microsoft.com/en-us/dax/lastnonblankvalue-function-dax

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.