Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Syndicate_Admin
Administrator
Administrator

Recuento continuo con agregando el próximo mes

Estimado equipo,

Gracias por darnos una herramienta 🙂 maravillosa

Me enfrento al problema al medir los recuentos de cabezas rodantes meses sabios (agregando un mes dos segundos y luego obteniendo un promedio de segundo, así sucesivamente hasta 12 meses o fecha de finalización del filtro)

Consulte la siguiente tabla Recuento real de personal de 12 meses tomando el promedio simple y al poner la medida en powerbi no está dando el resultado esperado para ref. col. Rolling 12 Months PowerBI . Desea lograrlo por la fecha de inicio y la condición de filtro de fecha de finalización. La fórmula powerbi se coloca aquí.

Te solicito, por favor mira y comparte la solución.

Gracias de antemano.

Plantilla YTD (promedio móvil de 12 meses) =

VAR NumOfMonths = 12

VAR LastCurrentDate =

MAX ( Fechas[Fecha] )

CADA período =

DATESINPERIOD ( Dates[Date], LastCurrentDate, - NumOfMonths, MONTH )

Resultado VAR =

CALCULAR (

PROMEDIOX (

VALORES ( Fechas[Año Mes] ),

[Plantilla]

),

Periodo

)

VAR FirstDateInPeriod = MINX ( Period, Dates[Date] )

VAR LastDateWithSales = MAX ( Fechas[Fecha] )

DEVOLUCIÓN

IF ( FirstDateInPeriod <= LastDateWithSales, Result )

Filtro de fecha

De

01-abr-22

Para

31-mar-23

Nombre del mes

Plantilla

Excel rodante de 12 m

PowerBI de 12 meses continuos

Diff

abr-22

5322

5322

5244

78

Mayo-22

5325

5324

5254

69

jun-22

5357

5335

5266

68

jul-22

5400

5351

5282

69

ago-22

5429

5367

5299

68

sep-22

5489

5387

5322

65

oct-22

5470

5399

5344

55

nov-22

5534

5416

5372

44

dic-22

5602

5436

5403

33

ene-23

5637

5457

5433

23

feb-23

5665

5475

5464

12

mar-23

5660

5491

5491

0

5490.833333

5396.550511

5347.895833

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Muchas gracias Amit

adyaan_0-1686716840205.png

Es de gran ayuda, funciona bien

adyaan_1-1686716840206.png

Funciona bien para mí

Syndicate_Admin
Administrator
Administrator

Muchas gracias Amit 🙂

Es de gran ayuda, funciona bien 🙂

Syndicate_Admin
Administrator
Administrator

@adyaan , Prueba uno de los dos

Ventas 12 rodantes =
var _max = max(date[date]) // o today()
var _min = Max( eomonoth(_max,-12)+1 , minx(allselected(date), Date[Date]))
devolución
CALCULATE(AVerageX(Values(date[Month year]) , calculate(SUM(Sales[Sales Amount]))),filter(allselected(date), date[date] <=_max && date[date] >=_min))

o

Ventas 12 rodantes =
var _max = max(date[date]) // o today()
var _min = Max( eomonoth(_max,-12)+1 , minx(allselected(date), Date[Date]))
devolución
CALCULATE(AVerageX(Values(date[Month year]) , calculate(SUM(Sales[Sales Amount]))),filter(all(date), date[date] <=_max && date[date] >=_min))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.