Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No State Change in Time Range - Row disapears #123

Open
dpunzeng opened this issue Aug 24, 2020 · 1 comment
Open

No State Change in Time Range - Row disapears #123

dpunzeng opened this issue Aug 24, 2020 · 1 comment

Comments

@dpunzeng
Copy link

Hi there, firstly I am so glad that I found your cool plugin - saved my week!

One issue - or maybe a lack of knowledge/docu:
If I have - say - 5 rows of feed and one row has no state change over the observed time period - IT DISSAPEARS :(

I thought the "expand from query" value solvs this problem by looking further back (enough) to find a state change. But it does not, at least in my setting.
Can anybody poke me in the right direction?
Thx heaps Diet

@dpunzeng
Copy link
Author

OK, workaround!
Query that looks fare in the past, to sure find a record, fill it with "null" and do the rest as always. Not sweet but works.
Example:

SELECT "count" FROM
(SELECT (last("firstzone") - last("firstzone")) as "count" from "xxx" WHERE time < (now()-7d)),
(SELECT count("firstzone") FROM "xxx" WHERE ("topic" ='TCS1') AND "firstzone"=2 AND "lastzone"=1 AND $timeFilter GROUP BY time(5m) fill(0))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant