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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
shds
Advocate I
Advocate I

How to get only data for next or previous X hours

Hello,

 

I just found out that it is not very easy to do a SQL-like query on DateTime fields where the value should be BETWEEN datetime 1 and datetime 2.

 

How is it possible to achieve this for a dataset in PowerBI? I would like to get a set of records that only shows the next 36 hours for example. I have experimented with a custom column ("IsNext36Hours"), but cannot figure out how to fill it properly.

 

Any suggestions on how to achieve this?

 

Thanks in advance!

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@shds

 

You can use any of this options:

 

Filtering Rows

 

Filtering RowsFiltering Rows

Creating a New Column:

 

Adding a ColumnAdding a Column




Lima - Peru

View solution in original post

1 REPLY 1
Vvelarde
Community Champion
Community Champion

@shds

 

You can use any of this options:

 

Filtering Rows

 

Filtering RowsFiltering Rows

Creating a New Column:

 

Adding a ColumnAdding a Column




Lima - Peru

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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