Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ale_nilo84
Contributor
Contributor

Variables in a box Plot graph

Hello, I have created a box plot graph, but I have problems using variables.

gráfico.jpeg

The following variable was defined:  vSemanaMax = WeekName(Max(fecha_union)) to show the last week loaded


How can I insert this variable in the expressions of this chart?


Centro del Cuadro: Avg(Aggr(avg(velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))

Parte inferior del Cuadro: Avg(Aggr(avg(velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))-stdev(Aggr(avg(velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))

parte inferio cuadro.jpeg

Greetings from Chile


Labels (1)
2 Replies
Anil_Babu_Samineni
MVP
MVP

Perhaps this?

Centro del Cuadro: Avg(Aggr(avg({<fecha_union = {$(vSemanaMax)}>} velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))

Parte inferior del Cuadro: Avg(Aggr(avg({<fecha_union = {$(vSemanaMax)}>} velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))-stdev(Aggr(avg({<fecha_union = {$(vSemanaMax)}>} velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
ale_nilo84
Contributor
Contributor
Author

It doesn't work


gráfico.jpeg

in the script the dates are set in this way:

fechas:

load distinct

fecha unión,

year (fecha_union)              as Year,

Month(fecha_union)            as Mes,

day(fecha_union)                as Day,

Weekname(fecha_union)    as Numero Semana,

date(fecha_union)               as fecha


The expressions of the box plot graph:


Centro del Cuadro: Avg(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))


Parte Inferior del Cuadro: Avg(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))-stdev(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))


Parte Superior del Cuadro: Avg(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))+stdev(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))


Eje Inferior del Cuadro: min(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))


Eje Superior del Cuadro: max(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))


Delimitador Inferior: min(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))


Delimitador Superior: max(Aggr(avg({<Numero_Semana={$(vSemanaMax)}>}velocidades_intervalo),[Media Hora],[velocidades_patente_inicio]))