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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set expression issue

Hi,

I need a set expression in this formula:

count({AS <Field1=, Field2=, ..., FieldN=>} distinct Media)

As you see in my set expression I list all available fields in my application except the field Media.

Is it possible to simplify the formula? Maybe, there is way not to list all the field available.

Thank you in advance,

Larisa

5 Replies
lironbaram
Partner - Master III
Partner - Master III

count({1<Media=p(Media)>}Distinct Media)

avinashelite

try like :

Count({1}distinct Media)

this will give the count independent of all the other fields

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this link

Ignore all selections except some specific fields using Set Analysis

OR else try

count({1<Media=P(Media)>} distinct Media)

Regards,

Jagan.

Anonymous
Not applicable
Author

Thanks everyone for your comments!

Almost each of you advised the expression {1<Media=P(Media)>} or {AS*1<Media=P(Media)>} as I'm using an alternate state.

I don't know why but it gives a different result than my initial formula: count({AS <Field1=, Field2=, ..., FieldN=>} distinct Media). Maybe, it is due to the peculiariteis of my application.


I'll use 'count({AS <Field1=, Field2=, ..., FieldN=>} distinct Media)' in my app then because I don't see a simpler alternative.


Thanks for sharing the link with some extra explanation!