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

Sumar Valores de una Columna en Script

buen dia,

tengo la siguiente duda,

tengo una tabla en qvd que tiene la siguiente informacion

llave | codigo | valor$

Los codigos se repiten y quiero todos los valores totales segun el codigo, la idea es algo como esto, pero que realmente me funcione.:

tabla:

LOAD distinct(codigo) as cod,

          sum(valor$) as total

FROM

archivo.qvd (qvd);

Gracias por su ayuda.

1 Solution

Accepted Solutions
MayilVahanan

HI

Try like this

LOAD codigo,
         
sum (valor$) as Total
FROM
archivo.qvd (QVD) group by code;
 

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

HI

Try like this

LOAD codigo,
         
sum (valor$) as Total
FROM
archivo.qvd (QVD) group by code;
 

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks, excellent!!!