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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression in set analysis

Hi All

I have a problem with expression in set analysis.

If I write:

Count(DISTINCT {$<RulesType={'NOT_OVERRIDE'}, Quarter ={ '1Q 12' } >} crrId)

it works well.

If I write

Count(DISTINCT {$<RulesType={'NOT_OVERRIDE'}, Quarter ={ $ ('1Q ' & right(Year,2)) }>}crrId)

where Year =2012, it doesn't work.

What's wrong?

Thanks

Luca

10 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,


Try

Count(DISTINCT {$<RulesType={'NOT_OVERRIDE'}, Quarter ={ '1Q $(=right(Year,2))' }>}crrId)


Above will work if Year is a variable or Year field has only one value selected.