Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hola a Todos
Necesito calcular el promedio de los activos, pero este calculo se realiza de manera condicional iniciando desde diciembre del año inmediato anterior, Ejemplo, si voy a sacar el activo promedio a octubre 2023, se debe calcular desde diciembre 2022 hasta octubre 2023, si deseo obtener a diciembre el calculo va desde diciembre 2022 hasta diciembre 2023, en caso de cambiar de año es decir quiero obtener a febrero 2024 el calculo va desde diciembre 2023 (inicindo desde diciembre del año inmediato anterior) hasta febrero 2024.
Esperando sus apoyos. Gracias Totales
Solved! Go to Solution.
last date = DATE(YEAR([date])-1, 12, 1)
Then, create a measure that calculates the average of the assets between the start date and the end date (current date or selected date).
avg_asset = CALCULATE(AVERAGE(Assets[asset]),
FILTER(ALLSELECTED(Assets),
[date] >= MAX([last date]) && [date] <= MAX([date])))
Here is the result
Best Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
last date = DATE(YEAR([date])-1, 12, 1)
Then, create a measure that calculates the average of the assets between the start date and the end date (current date or selected date).
avg_asset = CALCULATE(AVERAGE(Assets[asset]),
FILTER(ALLSELECTED(Assets),
[date] >= MAX([last date]) && [date] <= MAX([date])))
Here is the result
Best Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hay alguna forma de calcular "asset", teniendo en cuenta que "asset" tiene otra columna con diferente divisiones?, por ejemplo:
| date | asset | prod_asset | |
| 12/3/2022 | 1000 | A | |
| 12/7/2022 | 3200 | A | |
| 1/4/2023 | 5000 | A | |
| 4/1/2023 | 4300 | A | |
| 10/7/2023 | 7600 | A | |
| 2/9/2024 | 6300 | A | |
| 4/5/2024 | 7100 | A | |
| 6/6/2024 | 5000 | B | |
8/8/2024 | 1000 | B |
TOTAL_ASSET= SUM(ASSET)
asset = CALCULATE(TOTAL_ASSED, prod_asset="A")
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |