Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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