The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hola,
Quiero repartir el CECO de servicios centrales entre los diferentes clientes de toda la compañia, en función del siguiente reparto, suma de todas las cuentas de gastos del ceco entre el total de gastos por 0,5 y lo mismo con ingresos
Reparto = (Gastos cliente 1 / total gastos sociedad) * 0,5 + (Ingresos cliente 1/total ingresos sociedad)*0,5
El resultado de esta operación se multiplica por cada importe que tenga cada cliente para repartir todos los movimientos que tenga el ceco de Servicios centrales.
Se podria hacer este reparto en Power BI por año?
Solved! Go to Solution.
Hi @yiss ,
Based on your requirements description, I created two tables:
Create measures:
1. Gastos % = DIVIDE(MAX('Table'[Gastos]),SUMX(ALL('Table'),'Table'[Gastos]))*0.5
2. Ingresos % = DIVIDE(MAX('Table'[Ingresos]),SUMX(ALL('Table'),'Table'[Ingresos]))*0.5%
3. Reparto = [Gastos %]+[Ingresos %]
4. Measure Importe = CALCULATE(SUM('Sin reparto'[Importe]),'Sin reparto'[ceco]="SSCC")*[% Reparto]
Then create a new calculated table:
Reporta = UNION(SUMMARIZE('Table','Table'[ceco],'Table'[Cuenta],"Importe",[Measure Importe]),FILTER('Sin reparto','Sin reparto'[ceco] <> "SSCC"))
Result:
Best Regards,
Zhu
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @yiss ,
Based on your requirements description, I created two tables:
Create measures:
1. Gastos % = DIVIDE(MAX('Table'[Gastos]),SUMX(ALL('Table'),'Table'[Gastos]))*0.5
2. Ingresos % = DIVIDE(MAX('Table'[Ingresos]),SUMX(ALL('Table'),'Table'[Ingresos]))*0.5%
3. Reparto = [Gastos %]+[Ingresos %]
4. Measure Importe = CALCULATE(SUM('Sin reparto'[Importe]),'Sin reparto'[ceco]="SSCC")*[% Reparto]
Then create a new calculated table:
Reporta = UNION(SUMMARIZE('Table','Table'[ceco],'Table'[Cuenta],"Importe",[Measure Importe]),FILTER('Sin reparto','Sin reparto'[ceco] <> "SSCC"))
Result:
Best Regards,
Zhu
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
11 | |
7 |