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: 
Not applicable

Set analysis R12

hi i have some issues with my R12 calculation could someone take a look and help please.

=Count({$<[Datum]={"<=$(=DATE(Today()),'YYYYMMDD') >= $(=DATE(Today()-365),'YYYYMMDD')"}>}
DISTINCT TP_ID)

1 Solution

Accepted Solutions
sunny_talwar

Try reversing the order and no space between )>=$(

=Count({$<[Datum]={">=$(=DATE(Today()-365),'YYYYMMDD')<=$(=DATE(Today()),'YYYYMMDD')"}>} DISTINCT TP_ID)


Update: Fixing issues in the expressions pointed out by Max


=Count({$<[Datum]={">=$(=DATE(Today()-365,'YYYYMMDD')<=$(=DATE(Today(),'YYYYMMDD')"}>} DISTINCT TP_ID)

View solution in original post

6 Replies
sunny_talwar

Try reversing the order and no space between )>=$(

=Count({$<[Datum]={">=$(=DATE(Today()-365),'YYYYMMDD')<=$(=DATE(Today()),'YYYYMMDD')"}>} DISTINCT TP_ID)


Update: Fixing issues in the expressions pointed out by Max


=Count({$<[Datum]={">=$(=DATE(Today()-365,'YYYYMMDD')<=$(=DATE(Today(),'YYYYMMDD')"}>} DISTINCT TP_ID)

Clever_Anjos
Employee
Employee

Is your  field Datum formated YYYYMMDD?

Anonymous
Not applicable
Author

Try with bypassing the date field like?

=Count({<[Datum]=, [Datum]={'>=$(=DATE(Today()-365),'YYYYMMDD')<=$(=DATE(Today()),'YYYYMMDD')'}>} DISTINCT TP_ID)


=Count({<[Datum]=, [Datum]={'>=$(=DATE(Today()-365,'YYYYMMDD'))<=$(=DATE(Today(),'YYYYMMDD'))'}>} DISTINCT TP_ID)

Note:  Make sure format of Datum should be 'YYYYMMDD'

PrashantSangle

Hi,

There is closing bracket error for date()

Check and modify other wise there is no issue in your expression

It is supposed to below

Date(Today(),'YYYYMMDD')

where you did

Date(Today()),'YYYYMMDD')

same for other date(Today()-365,'YYYYMMDD')


Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sunny_talwar

Good catch max.

PrashantSangle

Thanks..

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂