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: 
mohitd910
Creator II
Creator II

Error in Set analysis or Date error

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 .

6 Replies
sunny_talwar

This is a weird behavior, but I think we would need to see more information before we can say what might not be working. Can you provide more information?

mohitd910
Creator II
Creator II
Author

Like which type of information

mohitd910
Creator II
Creator II
Author

Capture.PNGCapture2.PNG

this is the correct output and data is corresponding to months

mohitd910
Creator II
Creator II
Author

Capture3.PNGCapture4.PNG

this is according to date is is showing wrong data.

mohitd910
Creator II
Creator II
Author

why is it creating the problem bro . stalwar1mrkachhiaimpnagarjuna.kothamandimayilvahananjagan

mohitd910
Creator II
Creator II
Author

solved

Set analysis

SUM({$<Date_Date = {'>=$(=YearStart(Max(Date_Date)))<=$(=YearEnd(Max(Date_Date)))'},Flag={'Visit TYPE REVENUE'}>} SELFPAYER_LC - DISCOUNT + PAYER1_LC)