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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filtering Data by Fixed Values

I wish to add a slider / drop down control with the values 7,14, 21 and 28.

Upon the user selecting one of theses values the data behind the QVW will be filtered to the last 7 days, the last 14 days, the last 21 days and the last 28 days respectively.

Is this possible and if so how would you do it?

Thank you

1 Reply
rbecher
MVP
MVP

Hi,

you can use a variable with an input box with fixed values which will be displayed as dropdown.

Then, you can use the variable in an set analysis expression like

sum({$<yourDateField={">date(today(1) - $(yourVariable))"}>} Sales)


- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine