UQL how to only get latest value by date #266
Unanswered
deltamelter
asked this question in
Q&A
Replies: 1 comment 17 replies
-
with |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a json data set with dozens of values updated (mostly) daily. every day's data is kept for 30days.
so if I want to know the current values I have to somehow filter by date and then keep the name and the latest price for each name. Maybe the other values for that name too, but really only intereseted in price right now.
Thought I could use UQL to summarize by date, but that doesn't give me an option to get just the single latest price, eg
Also considered order by and limit, but there are new "name" units added all the time so it is not possible to say how may to limit.
Really I just want to be able to look up the latest price value for a given name, but such filtering doesn't seem part of the datasource plugin.. ??
do I miss something? any hints? it there another way? I thought UQL would be most flexible.
I will attach the data set sample with just 4 such item types and 2 dates for each....
sample.txt
Beta Was this translation helpful? Give feedback.
All reactions