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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors