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,
Soy nuevo en PowerBI y estoy tratando de buscar una fórmula DAX para el valor acumulado hasta un mes determinado.
Tengo datos hasta junio de 2021, pero quiero mostrar el valor acumulado hasta mayo de 2020 solamente.
Estoy usando la siguiente fórmula que muestra todos los valores
Cumulative Earned Labor Units =
CALCULATE(
[Planned Cost],
FILTER(
ALL('Calendar'[Date]),
'Calendar'[Date]<=MAX('Calendar'[Date]
)
))
¿Podría alguien ayudarme a mostrar el valor acumulado hasta mayo de 2020 solamente?
Su ayuda es apreciada.
Gracias y saludos,
Nilesh Jain
Por favor, pruebe esta expresión
Cumulative Earned Labor Units =
VAR __thismax =
MAX ( 'Calendar'[Date] )
VAR __total =
CALCULATE (
[Planned Cost],
FILTER ( ALL ( 'Calendar'[Date] ), 'Calendar'[Date] <= __thismax )
)
RETURN
IF ( __thismax <= DATE ( 2020, 5, 30 ), __total )
Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.
saludos
palmadita
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Gracias por tu ayuda, Pat.
Sin embargo, el código no funciona y aparece el siguiente error.
Además, cambié _thisdate a _thismax pero luego no puedo agregar la medida en la sección de valor/valor de línea de ninguna visualización.
Arreglé la respuesta original. __thisdate debería haber sido __total.
saludos
palmadita
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Gran.
Funcionó, pero puedo ver el valor hasta 2019 sólo a pesar de que tenemos (2020,05,30)
Intenté lo mismo con (2021,05,30) y puedo ver el valor hasta 2020. ¿Es normal?
Por favor, avísame.
Además, agradezco tu rápida respuesta, Pat.
saludos
Nilesh Jain
Puesto que está utilizando la columna Año en el objeto visual, utilice DATE(2020, 12, 31).
saludos
palmadita
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@jnnilesh29 también puedes probar algo como esto
Cumulative Earned Labor Units =
VAR __stopDate = DATE ( 2020, 12, 31 ) --give the date where you want to stop the total
RETURN
CALCULATE (
CALCULATE (
[Planned Cost],
FILTER ( ALL ( 'Calendar'[Date] ), 'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
),
'Calendar'[Date] <= __stopDate
)
Me gustaría❤ elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
⚡Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.⚡
Hola parry2k,
Gracias, he funcionado y ahora el valor acumulado se refleja correctamente.
Sin embargo, en la visualización se ve una línea recta después de la fecha de detención.
Mi fecha de parada es el 29 de mayo de 2020.
¿Hay alguna manera de detener la línea después de la fecha de parada?
Estoy deseando saber de ti.
@jnnilesh29 No espero que continúe y deba parar el 05 de mayo de 2020. Algo más está pasando allí, se puede compartir el archivo pbix, eliminar cualquier información sensible antes de compartir.
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.
@jnnilesh29 probar un cambio y si no funciona, envíe pbix
Cumulative Earned Labor Units =
VAR __stopDate = DATE ( 2020, 12, 31 ) --give the date where you want to stop the total
RETURN
CALCULATE (
CALCULATE (
[Planned Cost],
FILTER ( ALL ( 'Calendar'[Date] ), 'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
),
KEEPFILTERS ( 'Calendar'[Date] <= __stopDate )
)
Me gustaría❤ elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
⚡Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.⚡
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.
Hola Parvinder,
La línea continúa más allá de la fecha de parada.
Te he enviado por correo electrónico el archivo pdix.
Estoy deseando saber de ti.
saludos
Nilesh Jain
@jnnilesh29 ningún problema, aún no he recibido. Echaré un vistazo tan pronto como lo tenga.
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.
Gracias Parvinder por tu ayuda.
2Cumulative Planned Labor Units =
VAR __stopDate = DATE ( 2020, 05, 29 )
RETURN
CALCULATE (
SUMX (
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
),
[Planned Cost]
),
KEEPFILTERS ( 'Calendar'[Date] <= __stopDate )
)
El código anterior enviado por usted funcionó. Le agradezco mucho su ayuda.
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 |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |