Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

Obtain Last Year (Object)

Hello,

I´m Trying to obtain last year with my formula but it is not working,

Actual Year is 3.689 I need to obtain 2.264, Instead  1.907.

I put an example for better comprehenssion,

Thanks!

1 Solution

Accepted Solutions
sunny_talwar

May be this:

= Num((Num(Sum({< Año = {$(xAñoAnt)}>}Aggr(

Num(Num(Sum({< Año = {$(xAñoAnt)}>}ValorOpeMonedaCorregidoUpdate_Consumo/Divisor),'#.##0')*(UFmax)/Sum({< Año = {$(xAñoAnt)}>}CantidadNeta_Consumo),'#.##0') ,CodFamiliaProducto_Consumo,DescrFamiliaProducto_Consumo)),'#.##0')) /

Count({< Año = {$(xAñoAnt)}>}Distinct(CodFamiliaProducto_Consumo)) ,'#.##0')

View solution in original post

2 Replies
sunny_talwar

May be this:

= Num((Num(Sum({< Año = {$(xAñoAnt)}>}Aggr(

Num(Num(Sum({< Año = {$(xAñoAnt)}>}ValorOpeMonedaCorregidoUpdate_Consumo/Divisor),'#.##0')*(UFmax)/Sum({< Año = {$(xAñoAnt)}>}CantidadNeta_Consumo),'#.##0') ,CodFamiliaProducto_Consumo,DescrFamiliaProducto_Consumo)),'#.##0')) /

Count({< Año = {$(xAñoAnt)}>}Distinct(CodFamiliaProducto_Consumo)) ,'#.##0')

View solution in original post

pgalvezt
Specialist
Specialist
Author

Perfect Thank you Sunny!