Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hola a todos
Lo que tengo que hacer es obtener un countrows para el período de informe actual y un countrows para todos los períodos de informe anteriores.
El resultado que quiero es:
Mes: Feb
Periodo actual: 2
Período anterior 10
Mes: Enero
Período actual: 4
Periodo anterior: 6
Estaba tratando de hacer una tabla filtrada con esta fórmula:
Solved! Go to Solution.
Gracias @amitchandak . Ajusté un poco sus sugerencias y funcionó.
@nikkirai , parece que tienes fecha y tabla de calendario (unido)
Pruebe medidas como
Ventas MTD = CALCULAR(SUMA(Ventas[Importe de ventas]),DATESMTD('Fecha'[Fecha]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
último mes Ventas = CALCULAR(SUMA(Ventas[Importe de ventas]),mes anterior('Fecha'[Fecha]))
Ventas MTD = CALCULAR(SUMA(Ventas[Importe de ventas]),DATESMTD('Fecha'[Fecha]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
MTD =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = eomes(_max,-1)+1 ,
devolución
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
Este mes =
var _max = eomonth(if(isfiltered('Date'),MAX( 'Date'[Date]) , today()),0)
var _min = eomes(_max,-1)+1 ,
devolución
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
Gracias @amitchandak . Ajusté un poco sus sugerencias y funcionó.