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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
cheskafausto
Frequent Visitor

Showing a graph based on current time plus 15mins

Hi everyone, 

 

In relation to this post below : 

https://community.powerbi.com/t5/Desktop/Showing-graph-based-on-current-time/td-p/316366

 

I am trying now to create a graph that shows the next 15mins based on the current local time. I tried using this formula:

 

#"custom step"=Table.SelectRows(#"Name of Previous Step", each ([Datetime]) <=(DateTime.LocalNow()+0.010416))

 but I get an error saying, I can't add that number to a date.time format. 

 

btw the number is 1/96 to represent 1 15min interval in a day. 

 

Any thoughts on this ?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@cheskafausto,

Please change your code to the following:

#"custom step"=Table.SelectRows(#"Name of Previous Step", each ([Datetime]) <=(DateTime.LocalNow()+#duration(0,0,15,0)))

Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@cheskafausto,

Please change your code to the following:

#"custom step"=Table.SelectRows(#"Name of Previous Step", each ([Datetime]) <=(DateTime.LocalNow()+#duration(0,0,15,0)))

Regards,
Lydia

Yes! Adding this function has worked! Thanks a bunch! 😄 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.