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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Use of * in set analysis

Hi all,

Small question concerning the option to use " * " in an expression.

My expression is the following:

=sum({$<%OrderSoort_Key={$(='810,830')}, Month=>}Sales)

Basically I have a dimension: OrderSoort_Key with values 800 up to 890. I only want to count the values 810 and 830.

AND

I have another dimension named A_Type with text values: BIG, BIG20, BIG30, SMALL

I only want to count BIG, BIG20 and BIG30, so basically everthing starting with BIG.

I thought I could use the expression:

=sum({$<%OrderSoort_Key={$(='810,830')}, A_Type={$(='BIG*'), Month=>}Sales)

But unfortunately it is not working.. It is important for me to tell QV I only want the values starting with "BIG" and I cannot make a limitative list of values to take into consideration, since it is a much longer list than just the 4 is wrote down.

Can anyone help me out?

Cheers!

Zipke

1 Solution

Accepted Solutions
johnca
Specialist
Specialist

Try this;

=sum({$<%OrderSoort_Key={'810','830'}, A_Type={'BIG*'} Month=>}Sales)

( a couple of single quotes around the 810 and 830 were missing )

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try:

=sum({$<%OrderSoort_Key={810,830}, A_Type={'BIG*'}, Month=>}Sales)


talk is cheap, supply exceeds demand
johnca
Specialist
Specialist

Try this;

=sum({$<%OrderSoort_Key={'810','830'}, A_Type={'BIG*'} Month=>}Sales)

( a couple of single quotes around the 810 and 830 were missing )

Not applicable
Author

It does not work anymore with your solution, I get a dash..