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: 
grajmca_sgp123
Creator
Creator

Set Analysis Expression.

I would like to replace '-' with '0' in above set analysis expression.

Syntax which I used but didn't workout.

If(
len(count({<Flag<>{'F'}>}distinct(ID)))='0',0,count({<Flag<>{'F'}>}distinct(ID))
)

Labels (1)
2 Replies
DavidM
Partner - Creator II
Partner - Creator II

If you want to exclude items with Flag F, you're doing it wrong, you can't use <>

either use -= or Flag={*}-{'F'}

puneetagarwal
Partner - Creator II
Partner - Creator II

Use below expression:

If(
len(count({<Flag-={'F'}>}distinct(ID)))='0','-',count({<Flag-={'F'}>}distinct(ID)))

I hope it works.

Regards,
Puneet Agarwal