You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a panel that is repeated for a Grafana variable (let's call it variable1).
In my JSON query, I want to check, if the result array contains an object with the attribute user that is equal to the iterated value of variable1:
$count($.items[user = $variable1[0]])
However, the values of variable1 are not being iterated even though the panel repeat options are set to variable1. The line $variable1[0] always returns the first entry of the array variable1 and not the iterated value.
How can I get this to work or is this behavior by design?
This discussion was converted from issue #227 on March 07, 2022 23:04.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having a panel that is repeated for a Grafana variable (let's call it
variable1
).In my JSON query, I want to check, if the result array contains an object with the attribute
user
that is equal to the iterated value ofvariable1
:However, the values of
variable1
are not being iterated even though the panel repeat options are set tovariable1
. The line$variable1[0]
always returns the first entry of the arrayvariable1
and not the iterated value.How can I get this to work or is this behavior by design?
Beta Was this translation helpful? Give feedback.
All reactions