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.
Hola a todos, me gustaría obtener un valor específico basado sólo en un mes específico.
Id | Fecha | YTD |
1 | 12/31/2018 | 400 |
1 | 1/1/2019 | 500 |
1 | 12/31/2019 | 800 |
2 | 5/1/2019 | 300 |
2 | 12/31/2019 | 400 |
Basándome en este ejemplo, quiero obtener los valores de los identificadores específicos para el 31 de diciembre, esto es para mí para obtener una comparación de YOY ADB
Solved! Go to Solution.
@jphiljuach aquí es la medida
Year End Value =
VAR __lastDate =
DATE (
YEAR (
MAX ( 'Table'[Date] )
) , 12, 31
)
RETURN
CALCULATE (
MAX ( 'Table'[YTD] ),
ALLEXCEPT ( 'Table','Table'[ID], 'Table'[Date] ),
KEEPFILTERS ( 'Table'[Date] = __lastDate )
)
y aquí está la salida
Me gustaría❤ elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@jphiljuach , No muy claro, pero esto debe dar
LASTNONBLANKVALUE(table[DATE], sum(Table[YTD])) // puede utilizar max si es necesario
LASTNONBLANKVALUE(table[DATE], sum(Table[ID]))
YTD QTY - TOTALYTD(max(Table[YTD]),'Fecha'[Fecha])
LYTD QTY - TOTALYTD(max(Table[YTD]),dateadd('Date'[Date],-1,year))
@jphiljuach Realmente no está claro lo que está tratando de lograr? ¿Elegirás un mes de la cortadora? ¿Qué quieres decir con un mes específico? ¿Puedes por favor elaborar más?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Tengo esta tabla donde tengo un YTD por mes, estoy tratando de obtener una nueva columna que sólo mostrará el valor específico en diciembre.
E.g
Id | Fecha | YTD |
001 | 10/31/2018 | 3000 |
001 | 11/31/2018 | 4000 |
001 | 12/31/2018 | 4500 |
001 | 11/31/2019 | 4000 |
001 | 12/31/2019 | 6000 |
002 | 10/31/2018 | 4500 |
002 | 12/31/2018 | 200 |
002 | 11/31/2019 | 5000 |
002 | 12/31/2019 | 600 |
Ahora quiero tener un resultado que produzca esto:
Id | Fecha | YTD | FINAL ADB |
001 | 10/31/2018 | 3000 | |
001 | 11/31/2018 | 4000 | |
001 | 12/31/2018 | 4500 | 4500 |
001 | 11/31/2019 | 4000 | |
001 | 12/31/2019 | 6000 | 6000 |
002 | 10/31/2018 | 4500 | |
002 | 12/31/2018 | 200 | 200 |
002 | 11/31/2019 | 5000 | |
002 | 12/31/2019 | 600 | 600 |
@jphiljuach aquí es la medida
Year End Value =
VAR __lastDate =
DATE (
YEAR (
MAX ( 'Table'[Date] )
) , 12, 31
)
RETURN
CALCULATE (
MAX ( 'Table'[YTD] ),
ALLEXCEPT ( 'Table','Table'[ID], 'Table'[Date] ),
KEEPFILTERS ( 'Table'[Date] = __lastDate )
)
y aquí está la salida
Me gustaría❤ elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
funcionó, muchas gracias por esto!
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |