Discussion Board for collaboration related to QlikView App Development.
Hi,
I am trying to build an expression that incorporates 1) ignoring selections in certain selection boxes, 2) summing sales for all possible values except the selected value for some selection boxes and 3) summing sales for the selected value for some selection boxes. For example:
So, some selection boxes need an 'exclude selected' logic and some selection boxes need an 'include selected' logic. Is this possible?
I've tried combining '1-$' and '$' identifiers in a set analysis expression unsuccessfully. I appreciate your help with this!
Thanks,
Deniece
NOTE: I'm editing this post to attach an example file of data that I would like to have the logic above applied to. Thanks.
sum({<MonthYear=,SiteLocation=,Region=e(Region)>}sales)
Have a look at below post.You can achieve it through variables and set analysis
QlikView Challenge (Products Purchased and Not Purchased Accounts)
sum({<MonthYear=,SiteLocation=,Region=e(Region)>}sales)
Hi,
By set analysis you can achieve this by ignoring or by pass the filter selection like
Sum({Year=,Month=,Division= } SalesValue)
Thanks & Regards
I think you already get the answers to your question
You can find a detailed explanation of previous suggestions in this very good doc (thanks to Aunez Fabrice)
Hi, This solution returns a static answer, i.e. when I make different selections in the QVW, I always get the same result. The solution I am after will return a different result when I make different filters/selections in the QVW.
sum({<MonthYear=,SiteLocation=,Region=e(Region)>}sales) - means, it respects all other selections those are not listed in the set, it ignores monthyear,sitelocation and selects excluded regions (those are not selected).
Can you please post your expression or sample app
Hi,
This solution does not cover the requirement to sum all values EXCEPT the selected value for some selection boxes AND sum the selected value for the selected value in other selection boxes.
Hi,
I cannot post my file due to confidential information, however, what the expression is currently doing is
Here is the expression from my QVW:
=sum({<MonthYear=, SiteLocation=, Region=e(Region)>}Sales)
Thanks for your assistance with this!
Thank you for suggesting this. I read this earlier and was unable to find a solution that covered all 3 components (ignore, sum except selected, and sum selected).