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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Timestamp Column

How can I pull out data from below column that will show requests before thursday @ 3:30pm and after ending on Sunday.

Hope I explained that right?

 

 

 

Timestamp
2018-10-10 12:40:27
2018-10-10 12:41:22
2018-10-16 9:19:59
2018-10-19 7:10:55
2018-10-27 6:35:41
2018-10-19 22:47:48
2018-10-27 6:35:46
2018-10-27 9:35:46
2018-10-23 12:09:15
2018-10-23 12:15:15
2018-10-24 11:09:15
2018-10-26 11:10:15
2018-10-26 13:09:15
2018-10-26 16:29:15
2018-10-23 9:29:43
2018-10-23 9:31:30
2018-10-23 9:31:39
2018-10-23 9:32:16
2018-10-23 9:33:09
2018-10-23 9:33:27
2018-10-23 9:33:48
2018-10-23 12:09:15
2018-10-24 13:31:49
2018-10-23 12:21:16
2018-10-24 8:55:45
2018-10-27 6:33:49
1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous

 

You could create a new table:

 

NewTable =
FILTER (
    Table1;
    Table1[Timestamp] >= DATE ( Year1; Month1; Day1 ) + TIME ( Hour1; Month1; Second1 )
    && 
Table1[Timestamp] <= DATE ( Year2; Month2; Day2 ) + TIME ( Hour2; Month2; Second2 ) )

where Table1 is your current table and Year1, Month1, etc  and Year2, Month2, etc. are the initial and final date/time within which you want to keep dates (your Thursday and Sunday in your example), 

View solution in original post

7 REPLIES 7
ryan_mayu
Super User
Super User

@Anonymous

 

I create a new column to find the values in the scope or out of scope. I am not sure if this is what you want.

 

 

 

Column = 
VAR day = WEEKDAY(Sheet2[Timestamp],1)
VAR time=TIMEVALUE(Sheet2[Timestamp])
return if((day=5&&time>=TIME(15,00,00))||day=6||day=7,"No","Yes")

Capture.JPG

Thanks and BR

Ryan





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

OK I create a custom column, I get an error.

error.PNG

@Anonymous

 

Not in the edit queries. That is for M. You need to create a column in the modeling. That is for DAX.

 

Capture.JPG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




AlB
Community Champion
Community Champion

@Anonymous

You can also do it in the query editor, just filtering with the Date/Time Filters --> Between...

Choose the date and simply write the time next to the date:

 

image.png

AlB
Community Champion
Community Champion

Hi @Anonymous

 

You could create a new table:

 

NewTable =
FILTER (
    Table1;
    Table1[Timestamp] >= DATE ( Year1; Month1; Day1 ) + TIME ( Hour1; Month1; Second1 )
    && 
Table1[Timestamp] <= DATE ( Year2; Month2; Day2 ) + TIME ( Hour2; Month2; Second2 ) )

where Table1 is your current table and Year1, Month1, etc  and Year2, Month2, etc. are the initial and final date/time within which you want to keep dates (your Thursday and Sunday in your example), 

Anonymous
Not applicable

Syntax error was for new table.

Anonymous
Not applicable

Syntax error

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors