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.
Tengo que calcular las ventas diarias promedio (por ejemplo, hoy es 20 de abril, calcularía las ventas diarias promedio sumando las ventas totales del 1 de abril al 20 de abril y luego dividir esto por 20 días).
Luego, mañana, calcularé las ventas diarias promedio sumando las ventas totales del 1 de abril al 21 de abril y luego dividiré esto por 21 días.
¿Es posible realizar un seguimiento e informar de las ventas diarias medias que se calculan en cada día en PowerBI?
Solved! Go to Solution.
@FredYeung_856 , Pruebe una medida como ejemplo - Fecha seleccionada
MTD = CALCULATE(AverageX(values('Date'[Date]), calculate(SUM(Table[Qunatity Produced])) ),DATESMTD('Date'[Date]))
la fecha no está seleccionada, según hoy
MTD=
var _min = eomonth(today(),-1)+1
var _max = hoy()
devolución
CALCULATE(AverageX(values('Date'[Date]), calculate(SUM(Table[Qunatity Produced])) ), FILTER(ALL('Table'),'Table'[Date] >= _min && 'Table'[Date] <=_max ) )
@FredYeung_856 , Pruebe una medida como ejemplo - Fecha seleccionada
MTD = CALCULATE(AverageX(values('Date'[Date]), calculate(SUM(Table[Qunatity Produced])) ),DATESMTD('Date'[Date]))
la fecha no está seleccionada, según hoy
MTD=
var _min = eomonth(today(),-1)+1
var _max = hoy()
devolución
CALCULATE(AverageX(values('Date'[Date]), calculate(SUM(Table[Qunatity Produced])) ), FILTER(ALL('Table'),'Table'[Date] >= _min && 'Table'[Date] <=_max ) )
Gracias Amitchandak, déjame intentarlo.
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.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |