Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
utkarshgarg
Not applicable

QLIK SENSE: Get Current Selected Field

Hi Michael,

Any update on this? Is there a way to get the current selected field in qlik sense?

UG

1 Solution

Accepted Solutions
Michael_Tarallo
Not applicable

Re: QLIK SENSE: Get Current Selected Field

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

Regards,
Mike Tarallo
Qlik
2 Replies
Michael_Tarallo
Not applicable

Re: QLIK SENSE: Get Current Selected Field

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

Regards,
Mike Tarallo
Qlik
tomasz_tru
Not applicable

Re: QLIK SENSE: Get Current Selected Field

I've been struggling with the same problem because I don't like long nested ifs. And finally I used function GetObjectDimension().

Tomasz