Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
QSense
Creator II
Creator II

Expression count for older than specific date

altyapi.png

Hello ,

In above You see my data I want to write formula of these columns

Hafta Başı : date(WeekStart(ISTEK_ACISTARIHI2),'DD.MM.YYYY') as [Hafta Başı],

Hafta Başından 1 Ay Öncesi : date((num#(date(WeekStart(ISTEK_ACISTARIHI2),'DD.MM.YYYY')-30)),'DD.MM.YYYY') as [HaftaBaşından 1 Ay Öncesi],

ISTEK_ACISTARIHI2 : Own table column

For each 'Hafta Başı' date I want to

count requests ISTEK_DURUM='Açık' and 'ISTEK_ACISTARIHI2'

older than 'Haftabaşından 1 Ay Öncesi' : In this column , for each Hafta başı date I want to count ISTEK_DURUM='Açık' and ISTEK_ACISTARIHI2 <

'HaftaBaşından 1 ay Öncesi'

For instance

Let assume that I selected 26.11.2012 (Hafta Başı) for this date calculated expression must look 'HaftaBaşından 1 ay Öncesi' date field(for this example

27.10.2012) and

select older date requests than 27.10.2012 and count ISTEK_ACISTARIHI2

İf you want ,

I can attach example qw

3 Replies
QSense
Creator II
Creator II
Author

[Haftabaşından 1 Ay Öncesi] bad field names error

QSense
Creator II
Creator II
Author

I changed [Haftabaşından 1 Ay Öncesi]  as HaftaBasindan_1_Ay_Oncesi

but it doesnt work correctly

QSense
Creator II
Creator II
Author

=Count({<ISTEK_ACISTARIHI2 = {"<=$(=Timestamp(Today() - 30, 'DD.MM.YYYY hh:mm:ss'))"},ISTEK_DURUM={'Açık'}>} ISTEK_ACISTARIHI2) this expression

works for last Hafta Basi date (03.12.2012)

I want to know request's count for each Hafta basi