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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

search for same value within timeframe

Good day,

I have the following question, for which I need some help.

Below you see a duplicate value.

This duplicate vaue was entered in the database within 2 seconds.

I want to have an extra colum which gives me a "yes" if the same value was entered in the database within 2 seconds.

And, if possible, I want to have the possibility to set the timeframe from 2 to 3 (or more) seconds manually (filter?).

Your help is highly appreciated!

Regards, John

 

Knipsel.JPG

2 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

Drag only value to the table visual and write these measures

Max date_time = MAX(Data[date_time])

Min date_time = MIN(Data[date_time])

Difference = [Max date_time]-[Min date_time]

Entered within 2 seconds = IF([Difference<=TIME(0,0,2),"Yes","No")

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

amitchandak
Super User
Super User

@Anonymous , New columns in table

last date = maxx(filter(Table,Table[value] =earlier(Table[value]) && Table[Date] <earlier(Table[Date])),Table[Date])
Date diff = if(abs(datediff([last date],[Date],second)),<=2, "Yes","No")
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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , New columns in table

last date = maxx(filter(Table,Table[value] =earlier(Table[value]) && Table[Date] <earlier(Table[Date])),Table[Date])
Date diff = if(abs(datediff([last date],[Date],second)),<=2, "Yes","No")
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
Ashish_Mathur
Super User
Super User

Hi,

Drag only value to the table visual and write these measures

Max date_time = MAX(Data[date_time])

Min date_time = MIN(Data[date_time])

Difference = [Max date_time]-[Min date_time]

Entered within 2 seconds = IF([Difference<=TIME(0,0,2),"Yes","No")

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors