Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
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
Employee
Employee

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

View solution in original post

2 Replies
Michael_Tarallo
Employee
Employee

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
Specialist
Specialist

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

Tomasz