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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
lcclcc
Contributor
Contributor

Trying Set analysis results is error in expression

I don't know how to find the qlik version, but I am using qlik sense enterprise. trying to use set analysis. why does this "error in expression"? trying to create a measure object of this

 

Count({<
// This is the Set Analysis that filters your data
[USER_ACCESS_ORG_CODE] = {"=
// The condition checks if the org code is within the range
// of your variables. It also handles the case where variables are empty.

// If vMinOrgRange is empty, this condition is met.
(IsNull('$(vMinOrgRange)') OR [USER_ACCESS_ORG_CODE] >= '$(vMinOrgRange)')

AND // Combine with the max range condition

// If vMaxOrgRange is empty, this condition is met.
(IsNull('$(vMaxOrgRange)') OR [USER_ACCESS_ORG_CODE] <= '$(vMaxOrgRange)')

// AND ensure the org code is not null
AND IsNull([USER_ACCESS_ORG_CODE]) = 0
"}
>} * )

Labels (2)
1 Solution

Accepted Solutions
WeLoveQlik
Partner - Creator
Partner - Creator

You can try replacing the * with 1. which will count each row but it might be better to count a unique field or some other field in your data model that you want to count.

IPC Global: ipc-global.com

View solution in original post

3 Replies
WeLoveQlik
Partner - Creator
Partner - Creator

The first thing I would try is replace your AND with a comma.

ln set analysis listing multiple conditions separating by a comma and is the default.

IPC Global: ipc-global.com
lcclcc
Contributor
Contributor
Author

no luck I removed two AND and replace with ,

 

I also tried this to troubleshoot and it says count needs one parameter, as a new person, not sure if it is a valid test

 

Count({<
// This is the Set Analysis that filters your data
[USER_ACCESS_ORG_CODE]
>} )

WeLoveQlik
Partner - Creator
Partner - Creator

You can try replacing the * with 1. which will count each row but it might be better to count a unique field or some other field in your data model that you want to count.

IPC Global: ipc-global.com