Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hola a todos! Cómo están?
Estoy desarrollando un tablero donde me piden obtener la variacion % con respeco a los meses que pueda seleccionar el usuario, es decir, si el usuario selecciona los meses enero, marzo y octubre. El tablero deberá mostrar la variacion de octubre vs enero, octubre vs marzo.
No se como hacerlo utilizando DAX. Actualmente tengo el calculo de la variacion mes a mes.
Aquí mi consulta:
Desde ya muchas gracias por sus sugerencias.
Saludos!
@Anonymous , each month will have diff from max selected month
% Variation =
var _max = maxx(allselected('DimDate'), 'DimDate'[FullDate])
var _min = eomonth(_max, -1)+1
VAR _ImporteAnterior = CALCULATE([ImportePromedio], DATESBETWEEN('DimDate'[Date],_min,_max))
RETURN
DIVIDE([ImportePromedio]-_ImporteAnterior, _ImporteAnterior, BLANK())
User | Count |
---|---|
84 | |
79 | |
70 | |
47 | |
42 |
User | Count |
---|---|
108 | |
52 | |
50 | |
40 | |
40 |