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

how can we get current sale for a particular year

Hi

I am not able to get todays sale in my dashboard

what may be the reason?

17 Replies
tresesco
MVP
MVP

Possible reasons could be numerous, but to track it down, we would require more information like: how your data look like, what expression you are trying, in which object.... You may want to read my recent reply here: Re: Pivot table in qlikview and understand the importance of detail and context.

Anonymous
Not applicable
Author

Hi

i want to use calender object and on which when i select todays date the current slaes should be updated in my chart

following is the coding used in my script

SQL SELECT *
FROM ETPEAS.dbo.CashOrderTrn
WHERE InvoiceType = '31' and (CreateDate >= 20130101 and CreateDate <= '$(currentdate)') ;

but only able to see sales till august not after that

what may the reason behind the same?


tresesco
MVP
MVP

How do you define your variable currentdate ?

Is your CreateDate field in YYYYMMDD format or YYYYDDMM format in db?

Have you checked if the db itself has data till today?

Anonymous
Not applicable
Author

currentdate is defined as follows

Let currentdate =DATE(Today(1)-1,'YYYYMMDD');
i

Anonymous
Not applicable
Author

db has data till today and its in format YYYYDDMM

prma7799
Master III
Master III


try like this

Let currentdate =DATE(Today(1)-1,'YYYYDDMM');

tresesco
MVP
MVP

Your variable format and field date format have to be same.

Anonymous
Not applicable
Author

yes this i have checked but still its not showing current sales

prma7799
Master III
Master III

Please share some sample data...