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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
NHTKID
New Member

Relative Date/Time Filter on Power BI Visual

Hi,

 

I have a date/time column which is the timestamp when the devices checked in with the Intune.

I am trying to use the filter to display devices that haven't checked in for 24 hours.

 

But the Time/Date filter only give me the option to show devices checked in.

For example, when I select Filter Type = Relative time,

it give me option "Show items when the value is in the last 24 hours",

while I need it to be "Not in the last 24 hours".

 

Is there any smart and simple way to work around this?

 

Thanks!

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @NHTKID ,

Thanks for @Waldo35 's solution, one more thing, we should use NOW function instead of TODAY which will return the time 00:00:00.

If you want to use the relative time, here's the solution.

Sample:

vkalyjmsft_0-1666685490469.png

1.Create a new table. Don't make relationship between the two tables.

Table 2 = VALUES('Table'[Item])

2.Create a measure.

Check =
IF ( MAX ( 'Table 2'[Item] ) IN VALUES ( 'Table'[Item] ), 1, 0 )

Put Item column from the new table in a visual, and put the measure in the visual filter then set its value to 0. After apply the relative slicer, get the correct result.

vkalyjmsft_1-1666685913516.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @NHTKID ,

Thanks for @Waldo35 's solution, one more thing, we should use NOW function instead of TODAY which will return the time 00:00:00.

If you want to use the relative time, here's the solution.

Sample:

vkalyjmsft_0-1666685490469.png

1.Create a new table. Don't make relationship between the two tables.

Table 2 = VALUES('Table'[Item])

2.Create a measure.

Check =
IF ( MAX ( 'Table 2'[Item] ) IN VALUES ( 'Table'[Item] ), 1, 0 )

Put Item column from the new table in a visual, and put the measure in the visual filter then set its value to 0. After apply the relative slicer, get the correct result.

vkalyjmsft_1-1666685913516.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Waldo35
Helper I
Helper I

Add a calculated column that checks for the hour mark, here i use 1 day, but this could also be done with hours of course 

Waldo35_0-1666611839276.png

 

hour example:

Waldo35_2-1666611907724.png

 

 

then in filter on this visual

 

Waldo35_1-1666611870270.png

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors