Forum Discussion
okusai3000
4 years agoHelper IV
Average Balance until selected month
Hi everyone, I'm trying to make a finance dashboard, and I need to have the average monthly balance of the year and selected month. The idea is that If we have selected June, I need an average ...
- 4 years ago
SOLVED:
Saldo Balance=CALCULATE ( SUM ( 'fact SAP_Libro_Mayor_Lineas'[Cargo_abono] ), DATESBETWEEN('dim Fecha2'[Fecha],MINX(ALL('dim Fecha2'),STARTOFYEAR('dim Fecha2'[Fecha])),max('dim Fecha2'[Fecha]))Activo Medio:= AVERAGEX( SUMMARIZE( CALCULATETABLE('dim Fecha2',DATESBETWEEN('dim Fecha2'[Fecha],STARTOFYEAR('dim Fecha2'[Fecha]),ENDOFMONTH('dim Fecha2'[Fecha]))), 'dim Fecha2'[Año],'dim Fecha2'[Mes],"ABCD",calculate([*Saldo Balance],'dim SAP_Cuentas_Contables_Familia'[Descrip_CAT1]="Activo")), [ABCD])
okusai3000
4 years agoHelper IV
SOLVED:
Saldo Balance=CALCULATE (
SUM ( 'fact SAP_Libro_Mayor_Lineas'[Cargo_abono] ),
DATESBETWEEN('dim Fecha2'[Fecha],MINX(ALL('dim Fecha2'),STARTOFYEAR('dim Fecha2'[Fecha])),max('dim Fecha2'[Fecha]))
Activo Medio:=
AVERAGEX(
SUMMARIZE(
CALCULATETABLE('dim Fecha2',DATESBETWEEN('dim Fecha2'[Fecha],STARTOFYEAR('dim Fecha2'[Fecha]),ENDOFMONTH('dim Fecha2'[Fecha]))),
'dim Fecha2'[Año],'dim Fecha2'[Mes],"ABCD",calculate([*Saldo Balance],'dim SAP_Cuentas_Contables_Familia'[Descrip_CAT1]="Activo")),
[ABCD])
Anonymous
4 years agoNot applicable
Hi okusai3000 ,
It's glad to hear that your problem has been resolved. And thanks for sharing your solution here. Could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards