Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone!
Thanks in advance!
yes you can get different periods in QV
should be something like
sum({<Month={"$(=max(Month)"}>}value) //latest month
sum({<Month={"$(=max(Month,2)"}>}value) //previous month
Ramon, thank you so much!
It works!
Do you happen to know whether it is possible to compare two periods in QlickView? In the long run I need calculated index of the latest month (you've already helped me with that, many thanks!) and an arrow identifying is it higher, lower or at the same level as in previous month.
It should be something like that:

Is it possible to script such a condition for these arrows?
Thanks in advance!
I would do this by using a Traffic Light gauge (see Display Options on the Expression tab).
Add an expression like this:
if( sum({<Month={"$(=max(Month)"}>}value) > sum({<Month={"$(=max(Month,2)"}>}value) , 1, 0)
The default Traffic Light Gauge should now show either a red or green light.
yes you can you need to set results as an image representation here is a post on how to do it Display images in straight table