Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
paulo_chiovetto
Contributor II
Contributor II

QlikSense

Boa tarde Senhores(as)

Gostaria de saber como posso somar os valores da maior data encontrada isso em uma expressão no QlikSense.

eu tentei algo desse tipo:

IF(Max({<valor={"*"}>}DATA)=DATA,SUM(valor))

 

Labels (1)
1 Solution

Accepted Solutions
JuanGerardo
Partner - Specialist
Partner - Specialist

Olá @paulo_chiovetto, I think you can use something like:

Sum({<DATA={'$(=Max(DATA))'}>} valor)

You will sum only rows where your date is the max date. Maybe you need to use Date() function to format your date, depending on your settings. In that case, it will be something like:

Sum({<DATA={'$(=Date(Max(DATA), 'DD/MM/YYYY'))'}>} valor)

 

JG

View solution in original post

2 Replies
RafaMartins
Creator II
Creator II

sum(<{Data={"$(=Max(Data))"}>}valor)

Geralmente faço dessa forma.

JuanGerardo
Partner - Specialist
Partner - Specialist

Olá @paulo_chiovetto, I think you can use something like:

Sum({<DATA={'$(=Max(DATA))'}>} valor)

You will sum only rows where your date is the max date. Maybe you need to use Date() function to format your date, depending on your settings. In that case, it will be something like:

Sum({<DATA={'$(=Date(Max(DATA), 'DD/MM/YYYY'))'}>} valor)

 

JG