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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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")
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")
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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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