Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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ó.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.