Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
geogou1973
Creator
Creator

Current date Sales only in a straight chart

Hello,

I have in the inline table the fields DATE, STORE, SALES,

also i have created a variable with the current date.

How can i have in a straight chart the sales of the store only

for the current date without selecting from the listbox.

Thank you in advance

1 Solution

Accepted Solutions
v_iyyappan
Specialist
Specialist

Hi,

Try like this,

Created the variable :

vCurrentDate = Date(Today());

=Sum({<Date={'$(=vCurrentDate)'}>}Sales)

Regards,

View solution in original post

3 Replies
v_iyyappan
Specialist
Specialist

Hi,

Try like this,

Created the variable :

vCurrentDate = Date(Today());

=Sum({<Date={'$(=vCurrentDate)'}>}Sales)

Regards,

tresesco
MVP
MVP

Take STORE as dimension, write expression like:

=Sum(If(Date=Today(), SALES))                               // you might have to be careful about the date format.

geogou1973
Creator
Creator
Author

It works.

Thank you very much.