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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
victor_greffet
Partner - Contributor III
Partner - Contributor III

Comparing dates with Set analysis

Hi community !

I found several topics on the subject but nothing to solve my problem...

In my app i wanted to compare two fields as a condition by using Set analysis :

rangesum( above( Count({$<

DateType={'CompanyApproved'},

{[Authorized_by_company]=<[Approved_by_company]}

>} ID)

but it's not working ...

Do you have an idea ?

Thank you,

Victor

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

I would just to this

If([Authorized_by_company] <= [Approved_by_company], 1, 0) as comparisonFlag

and then this:

Count({$<DateType = {'CompanyApproved'}, comparisonFlag = {1}>} ID)

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

May be this

Count({$<DateType = {'CompanyApproved'}, ID = {"=[Authorized_by_company]=<[Approved_by_company]"}>} ID)

victor_greffet
Partner - Contributor III
Partner - Contributor III
Author

Thank you for your answer Sunny,

Unfo it's still not working...

I think i have to load another field in the script like

if( [Authorized_by_company]<=[Approved_by_company],'<=','') as comparison


and then

Count({$<DateType = {'CompanyApproved'}, Comparison={'<='}}>} ID) ... is the wording correct?



sunny_talwar
MVP
MVP

I would just to this

If([Authorized_by_company] <= [Approved_by_company], 1, 0) as comparisonFlag

and then this:

Count({$<DateType = {'CompanyApproved'}, comparisonFlag = {1}>} ID)