Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sakshikaul
Creator II
Creator II

using variable in expression in charts

Hi,

I want to write an expression using variables start_date and end_date as shown in image

I want to show sales between the start_date and end_date. Both start_date and end_date are variables and these are text boxes

Now want to call both the variables in chart by writing expression using set analysis.

I want when user will select an event and will select a corresponding even date (lastDate)

now if user wants to  know the sales on  pre event date ie sales before 10 days with respect to selected date

and after once we get the date in text box that date will become starting date and last date will be as an event date

so I need to write an expression for start date and end date in pivot chart. How to write an expression?

3 Replies
Anil_Babu_Samineni

Not sure, Why you required to create many threads for single issue?

How to use a variable in expression in charts

how to write an expression for date range using variable

using variable in expression in charts

Instead, can you maintain one thread. cua Please look this.

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
sakshikaul
Creator II
Creator II
Author

Hey

When I attached the document, It was not responding so I thought the file was not attached hence I made a new thread for the same. I will take care of this in future.

Anonymous
Not applicable

Thanks Anil and Sakshi.

I am locking this thread and another of the duplicates that has the fewest responses.

I will keep this thread open for this issue: how to write an expression for date range using variable

Best,

Jeremy

Qlik Community Team