- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Last 24 hours of data
Hi Team,
I am trying to display, last 24 hours of data.
But
Last24Hours = Now() - 1
is giving me current timestamp. Not all the timestamps from last 24 hours.
Can someone help?
Thanks
c5966
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi c5666,
The Now()-1 will get only one value. You need to have a datetime column like below, then you could apply measure and set filter on it
Measure 12 = if(MIN(last24[times])>= Now()-1 && MIN(last24[times])<=NOW(),1,0)
If you don’t have datetime column, you could try to create it by below query
let Source = List.DateTimes(#datetime(2019, 7, 23, 0,0,0), 60, #duration(0, 1, 0, 0)), #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error), #"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"Column1", type datetime}}) in #"Changed Type"
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi c5666,
The Now()-1 will get only one value. You need to have a datetime column like below, then you could apply measure and set filter on it
Measure 12 = if(MIN(last24[times])>= Now()-1 && MIN(last24[times])<=NOW(),1,0)
If you don’t have datetime column, you could try to create it by below query
let Source = List.DateTimes(#datetime(2019, 7, 23, 0,0,0), 60, #duration(0, 1, 0, 0)), #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error), #"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"Column1", type datetime}}) in #"Changed Type"
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-22-2024 06:27 AM | |||
Anonymous
| 12-13-2018 04:43 AM | ||
06-07-2022 02:24 PM | |||
06-19-2022 08:59 AM | |||
Anonymous
| 07-03-2024 12:42 AM |
User | Count |
---|---|
107 | |
87 | |
80 | |
54 | |
46 |