Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accumulate columns by month, year (Acumular columnas por mes,año)

Hello Please I need your help

! It should be an easy case to solve but I'm starting on this and I have no idea how to do it even though I have researched a lot

The fact is that I have sales information for year, month, value and need to be dynamically calculate the cumulative per month; I want not calculated in charge since then must be able to filter and re calculated

I need not show it in a graph click accumulate but rather in a table; where the result is the grouping by year, month, sum (value) and accumulated in the year (sum from month to month)

Deputy Excel example of what I need but would be something

Equity month

1 3 3

2 2 5

June 3 11

.......

Please your help

Thank You

Translated with Google Translate - Qlik Community Administrative Team

Hola Por favor necesito su ayuda

!Debe ser un caso fácil de resolver pero estoy empezando en esto y no tengo idea de como hacerlo a pesar de que he investigado mucho

El caso es que tengo la información de ventas por año,mes, valor y necesito que se calcule dinámicamente los acumulados por mes; no quiero se calcule en la carga puesto que luego tiene que poder filtrarse y re calcularse

No necesito mostrarlo en un grafico con el click en acumular sino mas bien en una tabla; donde el resultado sea la agrupación por año, mes , sum(valor) y acumulado del año (suma de mes a mes)

Adjunto el excel del ejemplo de lo que necesito pero seria algo así

mes  valor   acumulado

1       3        3

2       2        5

3      6         11

.......

Por favor su ayuda

Gracias

1 Solution

Accepted Solutions
julian_rodriguez
Partner - Specialist
Partner - Specialist

Hola Marco

Si la dimensión es sólo el mes, puedes usar la opción de "acumulación completa" en las propiedades de la expresión SUM(VALOR). Mira el adjunto,

View solution in original post

2 Replies
julian_rodriguez
Partner - Specialist
Partner - Specialist

Hola Marco

Si la dimensión es sólo el mes, puedes usar la opción de "acumulación completa" en las propiedades de la expresión SUM(VALOR). Mira el adjunto,

Not applicable
Author

Muchas gracias Julian

La respuesta es válida y funciona; sin embargo al agregar más dimensiones no me funcionó

en todo caso encontré esta expresión que soluciona el problema

= aggr( rangesum(above( sum({<AÑO>}VALOR),0,rowno(total))), AÑO,MES)

Saludos