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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Help filtering time range by time stamp

Hello!

 

I am using an excel workbook as my source data here. Within the workbook there are individuel sheets for seperate bits of equipment with a number of variables recorded at minutel time stamps. The data is pulled to a master sheet that displays the time stamp and some other information whenever a limit is exceeded (i.e a trip) in one of the sheets, only a single time stamp is given for each trip.

 

In PowerBI, I am trying to create a line chart which will display a trend of the variables which apply to the trip, over a time period of 2 hours surrounding the trip.

 

For example: A trip occurs at 21/06/2021 08:00:00. I want to see all of the variables trended on the line chart for each of the minute time stamps between 21/06.2021 07:00:00 and 21/06.2021 09:00:00.

 

I have a table below the line chart which I'd like to use as the slicer. This table shows the trips from the master sheet. When I select the trip on that table, i would like the trend of the 2 hours surrounding that trip to be displayed on the line chart.

 

Currently, when I select the trip on the table, only the variables at that exact time stamp are displayed, because it is only reading the master trip table. How can I link that line chart back to the data that I require, so that when I select the trip on the displayed table, it looks for all of the time stamps for that trip in the required source table.

 

Any help would be greatly appreciated, and my appologies for any poor descriptions. I would include images but I'm restricted by my companies privacy policies.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

It sounds like you want to achieve a custom filter effect from your slicer. For your requirement, you need to use the unconnected table as source of the slicer, then you can write a measure expression to extract the current value and compare it with table records to filter records and apply it on 'visual level filter' to filter records.

Using the SELECTEDVALUE function in DAX - SQLBI

Applying a measure filter in Power BI - SQLBI

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

It sounds like you want to achieve a custom filter effect from your slicer. For your requirement, you need to use the unconnected table as source of the slicer, then you can write a measure expression to extract the current value and compare it with table records to filter records and apply it on 'visual level filter' to filter records.

Using the SELECTEDVALUE function in DAX - SQLBI

Applying a measure filter in Power BI - SQLBI

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.