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

Set analysis-Include excluded values

Hi,

I want to write a sum() expresion that include excluded values. How can i do it?

when i write sum({1<>}), it returns sum of all of possible values. I want to include grayed values.

14 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I think the answer to your question depends on the structure of your data model. It will be easier to suggest a fix and less testing for you if you could upload your model (or a sample if it large).

To upload, click the Use advanced editor link at the top right of the Reply form.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Hi

as Jonathan said it depends on model and field you are using for selection

So if you have a Calendar table  you may use it to select 2013

you will have then Sales for 2013 (january only) and all forecasted monthes

best regards

Chris

Not applicable
Author

Thanks christian, it's working

sunilkumarqv
Specialist II
Specialist II

Hi,

           see the following set analysis for included Year={$(=Max(Year))} and excluded  Field -= {'value'}

=((Sum({<Year={$(=Max(Year))},Field -= {'value'}>}Amount))


Regards

Sunil


bvssudhakar
Creator III
Creator III

Hi Nicole Smith,

I have one requirement, here i attached one qvw file in that file

If i select for filter 1: Baby Clothes in Category Name, Aino Shoes from Product name, 2012 from Year and

for filter2:Baby Clothes in Category Name, Deuce Shirt from Product name, 2013 from Year

then i want out like this

   

24222/16/2012Baby ClothesAino ShoesHalle KölnBob Park41
24222/16/2012Baby ClothesDeuce ShirtHalle KölnBob Park11
46651/21/2013Baby ClothesAino ShoesLa Moda d'il FuturiRicardo Gucci61
46651/21/2013Baby ClothesDeuce ShirtLa Moda d'il FuturiRicardo Gucci12

But output is not showing like this, it is showing selections related 572 rows some thing

Give some suggestions to out from this situation

Thank you in advance

Sudhakar