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.
¿Alguien sabe cómo cambiar esta medida (quizás una nueva) que puede hacer un conteo excluyendo el trimestre anterior?
@agd50 ¿Has probado este...
over all = Suma(Ventas[Importe de ventas])
Último Qtr Hoy =
var _today = hoy()
var _max = eomonth(_today, -1*if( mod(Month(_today),3) =0,3,mod(Month(_today),3)))
var _min = eomes(_max,-3)+1
devolución
CALCULATE(Sum(Sales[Sales Amount]) , FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
Entonces Total distinto del último qtr =
[Sobre todo] - [Último Qtr hoy]
En esto, puede reemplazar la suma de medida con count según necesite count.
También confirme si está usando el filtro de fecha en la página o no causa que puede cambiar la solución
Gracias, pero debería haber aclarado que quería decir sin YTD
Prueba esto si esto funciona para ti.
Recuento de incidentes YTD excluyendo el trimestre anterior =
VAR _today = HOY()
VAR StartDate = FECHA(AÑO(_today), 1, 1)
VAR EndDate = FECHA(AÑO(_today), PISO(MES(_today) - 1, 3) + 1, 1) - 1
VAR PrevQuarterStartDate = FECHA(AÑO(_today), PISO(MES(_today) - 4, 3) + 1, 1)
VAR PrevQuarterEndDate = FECHA(AÑO(_today), PISO(MES(_today) - 1, 3) + 1, 1) - 1
Resultados VAR =
CALCULAR(
[Conde de x],
DATESBETWEEN('Dim_Calendar'[Date], StartDate, EndDate),
NOT DATESBETWEEN('Dim_Calendar'[Date], PrevQuarterStartDate, PrevQuarterEndDate)
)
Resultados DEVOLVER