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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Condition

Hello, good days, it would have a consultation, I want to do a weighted average, since(as,like) the formula is done, but in all that I have to put it of form condional, in order that it me works according to one year as filter, it me does not work. Someone might help.
Thank you, a greeting Rose

num



(if ([AÑO]=[Año]-1,(SUM(Valores*Peso)/SUM(Peso))),0.00)

Thanks



3 Replies
sathishkumar_go
Partner - Specialist
Partner - Specialist

Hi

Can u attach ur application?

-Sathish

Not applicable
Author

I think bracket misplaced wrongly

Try this

=If([ANO]=[ANO]-1, (SUM(Valores*Peso)/Sum(Peso)),0.00))

-Raghu


Not applicable
Author

Thank you, the formula works, but the campo YEAR is distint Year that is a variable, that is to say if I claim that selected changeable Year, actualize the formula.

Thank you.