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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

suma completada el año pasado (año a año -1)

Hola, chicos

Necesito su ayuda, por favor.

Quiero medir la cantidad total del último año (YTY-1).

Pero tengo una restiicción: estoy usando una medida del YTD. Si filtro el mes, también obtengo el YTY-1 con valores filtrados. Pero debe medir el valor total del último año

Saludos cordiales desde Alemania 🙂

Mi medida actual:

NMVA06_0-1670940624790.pngcurrent_measure.PNG

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

¡Hola!

¿Tiene una tabla Date (Establecer y usar tablas de fechas en Power BI Desktop - Power BI | Microsoft Learn)?
Si es así, PREVIOUSYEAR() debería funcionar, en forma de:

AA_Betrag_YTY-1 := 
CALCULATE(
    [korrigierter Betrag], //assuming this is the measure you want to calculate
    PREVIOUSYEAR(Dates[Date]) //date column from your date table
    )

Hi Tomas

Sí, funciona bien. Ahora también conozco una función más. ¡Gracias por eso!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.