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

Set Analysis Query

Hi,

I'm still relatively new to Qlikview & set analysis - so apologies if this is a stupid question.

I'm using the below formula as part of a larger formula & it works fine:

sum({$<FundHeading={"*Sales*"},Scenario={$(vBudget2)}>}(DevBudgetAmount+0.01)*-1)

My query is how could I do this where the fund heading didn't contain 'Sales'? The below doesn't work:

sum({$<FundHeading<>{"*Sales*"},Scenario={$(vBudget2)}>}(DevBudgetAmount+0.01)*-1)

9 Replies
maxgro
MVP
MVP

sum({$<FundHeading=-{"*Sales*"},Scenario={$(vBudget2)}>}(DevBudgetAmount+0.01)*-1)

jonathandienst
Partner - Champion III
Partner - Champion III

Correction:

sum({$<FundHeading-={"*Sales*"},Scenario={$(vBudget2)}>}(DevBudgetAmount+0.01)*-1)


Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
er_mohit
Master II
Master II

Try this

sum({$<FundHeading={'*Sales*'},Scenario={'=$(=vBudget2)'}>}DevBudgetAmount+0.01)*-1)

maxgro
MVP
MVP

If I'm not wrong

The first           =-    selects all fund heading except '*Sales*'

The second      -=   removes from the current selection all fund heading with  '*Sales*'   

MK_QSL
MVP
MVP

What is your vBudget2 variable expression?

anthony_kinsell
Creator
Creator
Author

What's the difference?

maxgro
MVP
MVP

in the attachment

anthony_kinsell
Creator
Creator
Author

Anyone else any suggestions? None of the above seem to have worked

MK_QSL
MVP
MVP

Kindly load your sample qvw.