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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
nagarwal
Partner - Contributor II
Partner - Contributor II

Evaluating Expression in Set Analysis

Hello,

I have a requirement where I calculate Audit count of the sheet using below expression

Sum ({<AuditTimestamp={"*"}, AuditType={'Sheet'}>} Audit_Count

now I want to count the sheet id's for which the Sum of Audit Count is greater then 0. something like below expression

Count({< (Sum ({<AuditTimestamp={"*"}, AuditType={'Sheet'}>} Audit_Count) > 0 >} Sheet ID) 

Could you please help me to correct above expression 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

Count({<[Sheet ID] = {"=Sum({<AuditTimestamp = {[*]}, AuditType ={'Sheet'}>} Audit_Count) > 0"}>} [Sheet ID]) 

View solution in original post

3 Replies
arpitkharkia
Creator III
Creator III

May be try like this

if(Sum ({<AuditTimestamp={"*"}, AuditType={'Sheet'}>} Audit_Count)>0,count(sheetID))

sunny_talwar
MVP
MVP

May be this

Count({<[Sheet ID] = {"=Sum({<AuditTimestamp = {[*]}, AuditType ={'Sheet'}>} Audit_Count) > 0"}>} [Sheet ID]) 
nagarwal
Partner - Contributor II
Partner - Contributor II
Author

Thanks Sunny. It Worked perfect Just Added DISTINCT and got my solution.