Reuse a result of a panel query

Can I reuse a result of a panel query as an input for another query of the same panel?
Is it possible? How?

Hi,

AFAIK it’s not possible. You can reuse the result in another panel (using Dashboard datasource) but not in the same panel. What is your use case for that though? Maybe you could use Variables for that?

I have a variable, name it A, whose value is an array of strings: [‘a1’, ‘a2’, ‘a3’]. I’ve built a panel which is set up to repeat for each of those values for variable A. The point is, that panel depends on another variable, name it B, whose values are read from a CSV (inline) like this:

domain,image
a1,b1
a2,b2
a3,b3

If I select A=‘all’, then the panel will repeat three times, once for each value in [‘a1’, ‘a2’, ‘a3’], but that doesn’t guarantee that, for each iteration, B will take a value from [‘b1’, ‘b2’, ‘b3’], respectively. Instead, B turns out to be ‘all’, and makes no sense.

What datasource is B, csv?

I think at this point you need to graduate from inline csv to legit database for your data

You are pushing the limits of inline csv

1 Like