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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
mohammedmqi
Regular Visitor

el valor de diferencia entre año

hola a todos

Soy newbi en power bi

tienen esta mesa

mohammedmqi_1-1603106156483.png

así que lo cambio a la matriz a

mohammedmqi_2-1603106247456.png

y ahora necesito mostrar la diferencia entre 2019 y 2020 rahter que toatal becuse no necesito total

(differenceValue-2020-2019)

¿cómo puedo hacer eso?!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mohammedmqi , crear una tabla de año/fecha separada y usar una fórmula como esta

Este año: CALCULATE(sum('Table'[Amount]),filter(ALL('Date'),'Date'[Year]-max('Date'[Year])))
Last Year ? CALCULATE(sum('Table'[Amount]),filter(ALL('Date'),'Date'[Year]-max('Date'[Year])-1))

diff -Este año]-[Año pasado]
diff % á divide([This Year]-[Last Year ],[Last Year ])

Proporcione sus comentarios y consejos para nuevos videos
Tutorial Series Dax Vs SQL Direct Query PBI Consejos
Apreciamos tus Felicitaciones.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mohammedmqi , crear una tabla de año/fecha separada y usar una fórmula como esta

Este año: CALCULATE(sum('Table'[Amount]),filter(ALL('Date'),'Date'[Year]-max('Date'[Year])))
Last Year ? CALCULATE(sum('Table'[Amount]),filter(ALL('Date'),'Date'[Year]-max('Date'[Year])-1))

diff -Este año]-[Año pasado]
diff % á divide([This Year]-[Last Year ],[Last Year ])

Proporcione sus comentarios y consejos para nuevos videos
Tutorial Series Dax Vs SQL Direct Query PBI Consejos
Apreciamos tus Felicitaciones.

gracias por la respuesta

yo uso esto para este yaer

This Year = CALCULATE(sum(GENERALJOURNALACCOUNTENTRY[AMOUNT]),filter(ALL(GENERALJOURNALACCOUNTENTRY[DateGJ].[Year]),GENERALJOURNALACCOUNTENTRY[DateGJ].[Year]=max(GENERALJOURNALACCOUNTENTRY[DateGJ].[Year])))

y este último año

Last Year = CALCULATE(sum(GENERALJOURNALACCOUNTENTRY[AMOUNT]),filter(ALL(GENERALJOURNALACCOUNTENTRY[DateGJ]),GENERALJOURNALACCOUNTENTRY[DateGJ]=max(GENERALJOURNALACCOUNTENTRY[DateGJ])-1))

por lo que tengo que volver a buscar el este cálculo para asegurarse de que

Volveré después de eso

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors