Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

Days wise sale input box

Hi All,

I have one chart in that dimension is day([Date]) and Expressions are CM , LM & PYM

Now sometimes user want see only last 7 days data using input box.

Say suppose I have select Apr Month so it will see only last 7 days

i.e

30

29

28

27

26

25

24

Thanks

2 Replies
PrashantSangle

In your expression try below

sum({<date={">=$(=date(max(date)-7))<=$(=date(max(date)))"}>}sales)

Note: Change date format as per your date format,

replace 7 with input variable to calculate dynamically

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
prma7799
Master III
Master III
Author

Hi Prashant,

I don't want to change the  expression. I want like Top 10 analysis sometime user will inter 5 , 12 , or 30 also in input box .

Thanks