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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
dvbxr6bud
Contributor II
Contributor II

button usecase

Hi.

Im trying to discard a yearmonth selection by using a button.

my idea was to define the yearmonth field to zero so i could dynamicaly choose detailed data or total data.

any ideas? 🙂

Labels (1)
1 Solution

Accepted Solutions
dvbxr6bud
Contributor II
Contributor II
Author

Hi guys,

a found a solution that fits to my issue.
I used a button (Set Variable) and set it the next expression:

=if(vShowMonth=0,1,0)

it worked:)
thanks for your help

View solution in original post

4 Replies
jochem_zw
Employee
Employee

Using a button is not the best idea I think. Why not use set analysis in your expressions. So for example sum({<yearmonth=>}Amount) with this formula you will get a sum of all amounts even when you have filtered on yearmonth. 

if you want to do it by button, there is an action to clear the field. 

Anil_Babu_Samineni

Maybe use button with action like, "Clear selections in field" otherwise set analysis is better approach.

alternatively, you can maybe think that field to use an alternative state.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
dvbxr6bud
Contributor II
Contributor II
Author

Hi guys,

a found a solution that fits to my issue.
I used a button (Set Variable) and set it the next expression:

=if(vShowMonth=0,1,0)

it worked:)
thanks for your help

dvbxr6bud
Contributor II
Contributor II
Author

It can work for me but i have more then 60 fields so i ratter use something else..

thanks:)