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
Tengo una mesa con Budget para años pasados y año en curso. Medida presupuestaria. El eje de la visualización proviene de la tabla de calendario.
Modelo de datos con tabla de calendario. La tabla de calendario se define en el Editor de consultas.
A continuación, utilizo CALCULATE para modificar los filtros y obtener el presupuesto del año actual. Todo bien hasta aquí.
Pero cuando agrego Calendar[Date] <-TODAY() como un segundo filtro, obtengo el mismo valor para todos los meses, incluidos los meses no del año actual.
Lo que esperaba era obtener sólo el presupuesto de cada uno de los meses del año en curso que ya han pasado.
¿Qué es lo que no veo? ¿CACLULATE está reemplazando un filtro? ¿Cuál y por qué?
Solved! Go to Solution.
@dlopezm probar esto
Budget Current Year =
CALCULATE ( [Budget], Calendar[Year Offset] = 0,
KEEPFILTERS( Calendar[Date] <= TODAY() )
)
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.
@dlopezm probar esto
Budget Current Year =
CALCULATE ( [Budget], Calendar[Year Offset] = 0,
KEEPFILTERS( Calendar[Date] <= TODAY() )
)
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.
Gracias @parry2k, su propuesta está funcionando.
Pero mi pregunta es también "¿Por qué CALCULATE() reemplaza los filtros aplicados a la visualización?" ya que no estoy usando la columna Calendar[Date] como filtro en cualquier lugar de la visualización.
@dlopezm cuando se utiliza una condición como esta Tabla[Fecha] < ? HOY(), se convierte en FILTER( ALL ( Table[Date] ), Table[Date] < ? TODAY() ) y es por eso que el valor se estaba repitiendo. Espero que ayude.
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.
Lo que no estoy recibiendo es: ¿por qué la visualización elimina Calendar[Year] y Calendar[Month] como filtros cuando utilizo Calendar[Date] <-TODAY() dentro de CALCULATE() pero no elimina el filtro cuando uso Calendar[Year Offset] a 0 , aunque vengan de la misma tabla, la tabla Calendar.
¿Mi pregunta tiene algún sentido @parry2k?
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 |