Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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)
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)
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
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))
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))
Swuehl ya te dio la respuesta Manuel
Thanks a lot Swuehl. that´s just what i was looking for!
I appreciate your help