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

Adding 2 different sets

This should be so simple but I am drawing a blank

I have:

Product

A

B

C

D

Region

North

South

East

West

I want to add set analysis like below but it doesn't seem to work:

=sum(
{<
[Product]={'A','B'}>}
Sales
)

+

sum(
{<
[Region]={'North','South'}>}
Sales
)*.4

Labels (1)
3 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

Try this

(sum(
{<
[Product]={'A','B'}>}
Sales
)

+

sum(
{<
[Region]={'North','South'}>}
Sales
)) * .4

israrkhan
Specialist II
Specialist II

Try Below:


=num((sum({<[Product]={'A','B'}>}Sales)+sum( {<Region={'North','South'}>}Sales))*.4,'###0.00')

yevgeniy
Creator
Creator

Hi,

may be try

rangesum(sum(
{<
[Product]={'A','B'}>}
Sales
)

,

sum(
{<
[Region]={'North','South'}>}
Sales
))

*.4