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

Set Analysis based label (etiqueta basada en set analysis)

Good afternoon,

I need your help.

I have a simple table chart with a dimension (Product) in which I have 4 expressions (sale) in September analysis that calculates sales me the last four months by month (see picture)

08-26-2015 03-19-05 pm.jpg

So far so good. what I want is to see on the label of each expression the month and year being calculated by the analisys set.

This is the expression I'm using as an example to calculate the sales of the previous month@:

Sum({$<FechaVenta={'>=$(=Monthstart(Addmonths(Max( FechaVenta ),-1)))<=$(=MonthEnd(Addmonths(Max(FechaVenta ),-1)))'} >} Sales)

I appreciate your help

Translated with Google Translate - Qlik Community Administrative Team

Buenas tardes,

Necesito de su ayuda.

tengo un gráfico de tabla simple con una dimensión (Producto)en el cual tengo 4 expresiones (venta)con set análisis que me calcula las ventas de los últimos 4 meses mes a mes (ver imagen)

08-26-2015 03-19-05 p.m..jpg

Hasta allí todo bien. lo que quiero es que en la etiqueta de cada expresión se vea el mes y el año que esta calculando por medio del set analisys.

Este es la expresión que estoy utilizando como ejemplo para calcular las ventas del mes anterior@@@:

Sum({$<FechaVenta={'>=$(=Monthstart(Addmonths(Max(FechaVenta),-1)))<=$(=MonthEnd(Addmonths(Max(FechaVenta),-1)))'} >} Ventas)

agradezco su ayuda

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Use something along these lines:

=Monthname(Addmonths(Max(FechaVenta),-1))

=Monthname(Addmonths(Max(FechaVenta),-2))

=Monthname(Addmonths(Max(FechaVenta),-3))

=Monthname(Addmonths(Max(FechaVenta),-4))


for your four lables or combined with venta:


='Venta in ' & Monthname(Addmonths(Max(FechaVenta),-1))

View solution in original post

3 Replies
swuehl
MVP
MVP

Use something along these lines:

=Monthname(Addmonths(Max(FechaVenta),-1))

=Monthname(Addmonths(Max(FechaVenta),-2))

=Monthname(Addmonths(Max(FechaVenta),-3))

=Monthname(Addmonths(Max(FechaVenta),-4))


for your four lables or combined with venta:


='Venta in ' & Monthname(Addmonths(Max(FechaVenta),-1))

ramoncova06
Specialist III
Specialist III

Swuehl ya te dio la respuesta Manuel

Not applicable
Author

Thanks a lot Swuehl. that´s just what i was looking for!

I appreciate your help