Skip to main content

App Development

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

Announcements
Welcome to Qlik Community! Check out our new navigation! FIND OUT MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
utkarshgarg
Creator II
Creator II

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