Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Michael,
Any update on this? Is there a way to get the current selected field in qlik sense?
UG
Hello UG -
See this example - attached.
If(getselectedcount(Year)<>1, Sum({<Year={"$(=max( Year ))"}>} Sales ),
Sum({<Year={"$(=getfieldselections( Year ))"}>} Sales ))
In this example - I was just trying to simulated the selection for This Year for Last
However - there may be a better way to achieve this, what is your use case?
Please mark the appropriate replies as helpful / correct so our team and other members know that your question(s) has been answered to your satisfaction.
Regards,
Mike Tarallo
Qlik
Hello UG -
See this example - attached.
If(getselectedcount(Year)<>1, Sum({<Year={"$(=max( Year ))"}>} Sales ),
Sum({<Year={"$(=getfieldselections( Year ))"}>} Sales ))
In this example - I was just trying to simulated the selection for This Year for Last
However - there may be a better way to achieve this, what is your use case?
Please mark the appropriate replies as helpful / correct so our team and other members know that your question(s) has been answered to your satisfaction.
Regards,
Mike Tarallo
Qlik
I've been struggling with the same problem because I don't like long nested ifs. And finally I used function GetObjectDimension().
Tomasz