Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help on a formula

In my formula below, I'm totaling all the revenues received in prior year that equal transaction code 18.

=sum({$ <Type={'Revenue'}, TC = {"> 18"}, CalYear={$(vPriorYear)}>}[Transaction Amount])

The formula works fine but I need to exclude a certain account number.  The field associated to the account number is  Acct#  and the actual account number is 59901

I am new to qlikview and would appreciate any assistance.

Thanks

1 Solution

Accepted Solutions
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

try like this:

=sum({$ <Type={'Revenue'}, TC = {"> 18"}, CalYear={$(vPriorYear)}, Acct# -= {59901}>}[Transaction Amount])

or

sum({$ <Type={'Revenue'}, TC = {"> 18"}, CalYear={$(vPriorYear)}, Acct# ={'*'}-{59901}>}[Transaction Amount])


regards

View solution in original post

2 Replies
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

try like this:

=sum({$ <Type={'Revenue'}, TC = {"> 18"}, CalYear={$(vPriorYear)}, Acct# -= {59901}>}[Transaction Amount])

or

sum({$ <Type={'Revenue'}, TC = {"> 18"}, CalYear={$(vPriorYear)}, Acct# ={'*'}-{59901}>}[Transaction Amount])


regards

Not applicable
Author

Thank you.  It worked.