Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Buttons!

Hi everyone,

Hoping someone can help me with buttons!

I am creating a QV dashboard to show how long people are waiting for their issues to be resolved. I want a button which will change the list to show:-

All unresolved issues (where date closed is null)

All resolved issues (where date closed is not null)

All issues which are unresolved and has been 30 days since logging.

Can someone help me?  I've tried different things with Select in Field but I'm not getting it right

Thanks muchly

Natalie

xXx

1 Solution

Accepted Solutions
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

besides doing it with flags at script level, you can also set 3 different actions for the buttons:

  • Unresolved Issues --> select in field > search string --> ='=isnull(CLOSEDATE)'
  • Resolved Issues --> select in field > search string --> ='=isnull(CLOSEDATE)=0
  • >= 30 days since log and unresolved --> ='=TODAY() - [LOG DATE] >= 30 AND ISNULL(CLOSEDATE)'

check the attached example,

regards

View solution in original post

7 Replies
Not applicable
Author

You can add a Action (Select in Field) to the Button select the depending Values (for example Open)

jolivares
Specialist
Specialist

I suggest that you assign a status during a script run.  In this case every call has a status and in your dashboard just put a list box from which you can select a specific value.

Otherwise, what your want it is possible to do from within the dashboard, but i recommend to do in the script.

If you need more help... post some data in order to see what is happening.

Anonymous
Not applicable
Author

Try these:

Open calls (no close date):
Select in Field Call ID with search string
='('& concat({-<[Date Closed]={*}>} DISTINCT [Call ID], '|')&')'

Resolved:
Select in Field Call ID with search string
='('& concat({<[Date Closed]={*}>} DISTINCT [Call ID], '|')&')'

Unresolved within 30 days:
Select in Field Call ID with search string
='('& concat({-<[Date Closed]={*}, [Date logged]={"$(='<=' & date(today()-30))"}>} DISTINCT [Call ID], '|')&')'

Not applicable
Author

Hi Michael,

Thanks for your reply but those haven't wrked

Juan Olivares I have used your suggestion and updated my script so that it is calculated in there:-

 

if([Date logged]+30 < Today(),1,0) AS Days,
If(isNull([Date closed]),1,0) AS Resolved,

So that records are flagged as a 1 if it is more than 30 days and 0 for others.

And then used an Action> Select In Field Days and Search String 1

which seems to work

Thanks everyone!

xXx

jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

besides doing it with flags at script level, you can also set 3 different actions for the buttons:

  • Unresolved Issues --> select in field > search string --> ='=isnull(CLOSEDATE)'
  • Resolved Issues --> select in field > search string --> ='=isnull(CLOSEDATE)=0
  • >= 30 days since log and unresolved --> ='=TODAY() - [LOG DATE] >= 30 AND ISNULL(CLOSEDATE)'

check the attached example,

regards

stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Natalie,

I have created a document which shows the many and varied things you can do with buttons, or text areas with click Actions.  Making selections is just one aspect.

That document can be downloaded here: QlikView App: At The Qlik Of A Button

There is also a blog post with information on how to achieve the things shown in the app, and a video showing it in action.

Hope that is useful to you.

Steve

Not applicable
Author

Thank you Jaime Aguilar, I have tried that and it has worked

Thanks for the link Steve Dark

Natalie

xXx