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: 
sde821
Contributor II
Contributor II

If, Only and Aggr in Filter Pane

Hi all,

I'm new to Qlik and tried some stuff but I couldn't work it out by myself.

I have a filter pane where the user can choose dates:

sde821_0-1708501278204.png

At the moment my formula is:

(1)      =If(date(Stichtag)>'01.01.2023',date(Stichtag))

Formula (1) shows me all dates bigger then 01.01.2023.

I would also like to combine this with a Aggr-Only formula like this:

(2)      =Aggr(Only({< numdate = {">=$(=vMin)<=$(=vMax)"} >}Stichtag),Stichtag)

Formula (2) gives me the possibility to only choose one date and not more.

I would like to combine (1) + (2). 

I am very grateful for any suggested solution.

 

Additionaly and if possible I would also like to sort the dates inside the filter pane in descending order. When this would fit into the combined formula above this would be perfekt.

Thank you for all your efforts in advance!

 

Labels (1)
1 Solution

Accepted Solutions
henrikalmen
Specialist
Specialist

Try this, it might work:

={<Stichtag={">01.01.2023"}>}Aggr(Only({< numdate = {">=$(=vMin)<=$(=vMax)"} >}Stichtag),Stichtag)

View solution in original post

2 Replies
henrikalmen
Specialist
Specialist

Try this, it might work:

={<Stichtag={">01.01.2023"}>}Aggr(Only({< numdate = {">=$(=vMin)<=$(=vMax)"} >}Stichtag),Stichtag)

sde821
Contributor II
Contributor II
Author

Hi Henrikalmen,

thank you! It works very well!