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.
Por favor, aconseje sobre cómo sumar todos los datos en dos columnas si el año es menor o igual que la selección del año. La tabla y el calendario tienen relación por fecha.
A continuación se muestran los mismos datos:
año | Bn | Salario básico | Asignaciones | |
2020 | Empleado 1 | 100 | 50 | |
2020 | Empleado 2 | 100 | 50 | |
2020 | Empleado 3 | 100 | 50 | |
2020 | Empleado 4 | 100 | 50 | |
2020 | Empleado 5 | 100 | 50 | |
2020 | Empleado 6 | 100 | 50 | |
2020 | Empleado 7 | 100 | 50 | |
2020 | Empleado 8 | 100 | 50 | |
2019 | Empleado 9 | 100 | 50 | |
2019 | Empleado 10 | 100 | 50 | |
2019 | Empleado 11 | 100 | 50 | |
2019 | Empleado 12 | 100 | 50 | |
2019 | Empleado 13 | 100 | 50 | |
2019 | Empleado 14 | 100 | 50 | |
2019 | Empleado 15 | 100 | 50 | |
Total | 1500 | 750 | ||
si selecciono Año | 2020 | la respuesta es | 2250 | |
si selecciono Año | 2019 | la respuesta es | 1050 | |
@CJ_96601 probar esta medida
Sum by Year =
CALCULATE (
SUM ( SomeData[Basic Salary] ) +
SUM ( SomeData[Allowances] ),
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
)
)
Me gustaría💖 elogios🙂 si mi solución me ayudara.👉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
Probado su solución, calcula pero omite al azar algunas filas en mi archivo de Excel (con 6000 filas para calcular).
Todas las fechas están bien
¿Alguna idea de por qué?
@CJ_96601 muy difícil de decir sin mirar eso por qué sería. Usted tiene que validar al final o enviar el archivo pbix
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.
Compartir:
Este funciona:
Gracias. Lo haré
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 | |
2 | |
2 | |
2 | |
1 |