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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Combine 2 Formulas

Hello together,

i have to formuals

sum({$<Nature={Actual}>}€)

and

Sum({<[year]={$(vYTDYear)} >}[€]))

vYTDYear = (max(year))

My Suggestion is

sum({$<Nature={Actual}>} <[year]={vYTDYear)}>}

Can you help me.

Thanks

6 Replies
phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

Use this

sum({$<Nature={'Actual'} ,[year]={$(vYTDYear)}>}[€])

Not applicable
Author

Hi,

try this:

Sum({$<Nature={'Actual'},year={$(#=vYTDYear)}>} [€])

$(#=) means QV has to read your variable as a Number.

Best regards

mrooney
Contributor III
Contributor III

I think you are right. This expression should be enough.

Not applicable
Author

Hello,

it Shows me the follow sign '-' in the table.

Do you know, why?

Not applicable
Author

thank you, but it Shows only the value '0' in the table.

Do you have an other idea?

Thanks.

phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

Howz your max year variable was setup? Do you have equal sign in front of the expression in variable?

if yes use the expression I have posted above.

it will be easy if for us if you can share your sample QVW.