Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis <> function

Hi,

I have a formula that filters the products by those labelled as "Other" amoung the BrandNames included (real brands are changed to protect the guilty) but I want the same formula that excludes products with the description of "Other".

How do I do this, replacing = with <> doesn't work

 

Sum({$<BrandName = {'Shirts','Pants','Hats','Shorts'}, SeasonShort ={"$(vCurrentSeason)"}, Products={'Other'} >} Sales)

Dave

1 Solution

Accepted Solutions
preminqlik
Specialist II
Specialist II

hi there,

if the above expresssion is doesn't work then  try this below exp :


Sum({$<BrandName = {'Shirts','Pants','Hats','Shorts'}, SeasonShort ={"$(vCurrentSeason)"}, Products= {"*"}-{"Other"} >} Sales)


or

sum(if((BrandName = 'Shirts' or BrandName='Pants' or BrandName='Hats' or 'Shorts') and SeasonShort =vCurrentSeason and Products<>'Other' ,Sales)

View solution in original post

2 Replies
preminqlik
Specialist II
Specialist II

hi there,

if the above expresssion is doesn't work then  try this below exp :


Sum({$<BrandName = {'Shirts','Pants','Hats','Shorts'}, SeasonShort ={"$(vCurrentSeason)"}, Products= {"*"}-{"Other"} >} Sales)


or

sum(if((BrandName = 'Shirts' or BrandName='Pants' or BrandName='Hats' or 'Shorts') and SeasonShort =vCurrentSeason and Products<>'Other' ,Sales)

Not applicable
Author


This worked, Thanks!

Sum({$<BrandName = {'Shirts','Pants','Hats','Shorts'}, SeasonShort ={"$(vCurrentSeason)"}, Products= {"*"}-{"Other"} >} Sales)