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

Error while using the date

Dear Friends,

i am using this set analysis:-

Sum({$<Date_Date = {">=$(=Yearstart(Max(Date_Date)))  <= $(=Date(Max(Date_Date)))"},Flag={'Visit TYPE REVENUE'}>} SELFPAYER_LC - DISCOUNT + PAYER1_LC)

And Dimension :- Month(Date_Date)

when i am selected only year (Date_Date) then showing correct date as:-

 

Date_DateMonth(Date_Date)Sum({$<Date_Date = {">=01/01/2015  <= 31/01/2015"},Flag={'Visit TYPE REVENUE'}>} SELFPAYER_LC - DISCOUNT + PAYER1_LC)
31/01/2015Jan1914457.93
30/01/2015Jan583803.52
29/01/2015Jan1763469.28
28/01/2015Jan1647084.46
27/01/2015Jan1850549.60
26/01/2015Jan1754736.65
25/01/2015Jan1846548.75
24/01/2015Jan1670615.16
23/01/2015Jan584490.22
22/01/2015Jan1907340.51
21/01/2015Jan1774922.10
20/01/2015Jan1936458.66
19/01/2015Jan1963843.90
18/01/2015Jan1876147.61
17/01/2015Jan1876634.20
16/01/2015Jan554669.93
15/01/2015Jan1827682.67
14/01/2015Jan1761802.97
13/01/2015Jan1902599.53
12/01/2015Jan1882669.56
11/01/2015Jan1847957.63
10/01/2015Jan1801115.66
09/01/2015Jan543513.62
08/01/2015Jan1824360.97
07/01/2015Jan1869307.85
06/01/2015Jan1926686.54
05/01/2015Jan1835259.85
04/01/2015Jan1961008.77
03/01/2015Jan1682604.74
02/01/2015Jan673796.83
01/01/2015Jan1521238.44

this is the output

but when i am selecting any date like 31/1/2015

then it showing date including January 2016 also

like this :-

 

Date_DateMonth(Date_Date)Sum({$<Date_Date = {">=01/01/2015  <= 31/01/2015"},Flag={'Visit TYPE REVENUE'}>} SELFPAYER_LC - DISCOUNT + PAYER1_LC)
31/01/2016Jan27750.00
28/01/2016Jan1000.00
26/01/2016Jan13520.00
25/01/2016Jan8355.00
24/01/2016Jan500.00
20/01/2016Jan36815.00
19/01/2016Jan1457.50
18/01/2016Jan6655.00
17/01/2016Jan1615.00
13/01/2016Jan170.00
12/01/2016Jan2330.00
11/01/2016Jan1204.50
07/01/2016Jan1111.50
01/01/2016Jan335.00
31/01/2015Jan1914457.93
30/01/2015Jan583803.52
29/01/2015Jan1763469.28
28/01/2015Jan1647084.46
27/01/2015Jan1850549.60
26/01/2015Jan1754736.65
25/01/2015Jan1846548.75
24/01/2015Jan1670615.16
23/01/2015Jan584490.22
22/01/2015Jan1907340.51
21/01/2015Jan1774922.10
20/01/2015Jan1936458.66
19/01/2015Jan1963843.90
18/01/2015Jan1876147.61
17/01/2015Jan1876634.20
16/01/2015Jan554669.93
15/01/2015Jan1827682.67
14/01/2015Jan1761802.97
13/01/2015Jan1902599.53
12/01/2015Jan1882669.56
11/01/2015Jan1847957.63
10/01/2015Jan1801115.66
09/01/2015Jan543513.62
08/01/2015Jan1824360.97
07/01/2015Jan1869307.85
06/01/2015Jan1926686.54
05/01/2015Jan1835259.85
04/01/2015Jan1961008.77
03/01/2015Jan1682604.74
02/01/2015Jan673796.83
01/01/2015Jan

1521238.44

why ???

I am using only one set analysis .

1 Solution

Accepted Solutions
mohitd910
Creator II
Creator II
Author

Solved Bro it is the correct measure SUM({$<Date_Date= {'>=$(=YearStart(Max(Date_Date)))<=$(=YearEnd(Max(Date_Date)))'},Flag={'Visit TYPE REVENUE'}>} SELFPAYER_LC - DISCOUNT + PAYER1_LC)

Refer this Error in Set analysis or Date error

View solution in original post

3 Replies
Anil_Babu_Samineni

Mohit, What was the problem, Try with Single Quotes and then see.

Sum({$<Date_Date = {'>=' & '$(=Yearstart(Max(Date_Date)))'  '<=' & '$(=Date(Max(Date_Date)))'},Flag={'Visit TYPE REVENUE'}>} SELFPAYER_LC - DISCOUNT + PAYER1_LC)

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
tresesco
MVP
MVP

Could you post a sample qvw that demonstrates the issue?

mohitd910
Creator II
Creator II
Author

Solved Bro it is the correct measure SUM({$<Date_Date= {'>=$(=YearStart(Max(Date_Date)))<=$(=YearEnd(Max(Date_Date)))'},Flag={'Visit TYPE REVENUE'}>} SELFPAYER_LC - DISCOUNT + PAYER1_LC)

Refer this Error in Set analysis or Date error