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
Josue-85
Frequent Visitor

Ayuda Medida TAM

Hola a todos, tengo el siguiente inconveniente, tendo una medida TAM que me calcula el Total Anual Movil de los 12 meses anteriores, esta es la medida:

"TAM_12=CALCULAR(SUMA('20_GPR_prescripción'[PX1]),FECHASENPERIODO(Calendario[Fecha],ÚLTIMA FECHA(Calendario[Fecha]),-12,MES))"
Sin embargo en la tabla al revisar los resultados en los meses de enero 2021 y enero 2022 el resultado es incorrecto, pero los demas meses el resultado si me da el correcto.
El resultado correcto deberia ser:
Enero 2021=2.559.651
Enero 2022=2.775.473
Josue85_0-1650397055805.png

 

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Josue-85 ,

 

Please share some sample data so that we could test the formula.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Josue-85 , The formula seem correct.

Try like

SIZE_12=CALCULATE(SUM('20_GPR_prescription'[PX1]),DATESINPERIOD(Calendar[Date],MAx(Calendar[Date]),-12,MONTH))

 

and make sure Calendar is marked as date table

 

Hola, ya probe con la medida que me indico, pero el resultado es el mismo 

Josue85_0-1650465147882.png

 

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.