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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
peterkumar
Contributor III
Contributor III

QS - Set Analysis

Good Afternoon - 

I will appreciate guidance on the set analysis below.  The first argument works fine, but the second one is being ignored.  

Count({$<[S-Account Mapped]={'Y'}, "=left([S-Date],4)"={'2016'}>}[S-Account Mapped])

Thank You!!

1 Solution

Accepted Solutions
sunny_talwar

You can also try this

Count({<[S-Account Mapped] = {'Y'}, [S-Date] = {"=Left(Only({1} [S-Date]), 4) = 2016"}>} [S-Account Mapped])

View solution in original post

3 Replies
jwjackso
Specialist III
Specialist III

I've never done it that way, you might have better luck with:

 

Count({$<[S-Account Mapped]={'Y'}, [S-Date]={">=$(=MakeDate(2016,1,1))<=$(=MakeDate(2016,12,31))"}>}[S-Account Mapped])

sunny_talwar

You can also try this

Count({<[S-Account Mapped] = {'Y'}, [S-Date] = {"=Left(Only({1} [S-Date]), 4) = 2016"}>} [S-Account Mapped])
peterkumar
Contributor III
Contributor III
Author

Many thanks Sunny!

That worked fine.