Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
yiss
New Member

Proporción Reparto

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. 

yiss_0-1732627031280.png


Se podria hacer este reparto en Power BI por año?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @yiss ,

 

Based on your requirements description, I created two tables:

vlinhuizhmsft_0-1732673910434.png

vlinhuizhmsft_0-1732674424290.png

 

 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:

vlinhuizhmsft_1-1732674657746.png

 

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.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @yiss ,

 

Based on your requirements description, I created two tables:

vlinhuizhmsft_0-1732673910434.png

vlinhuizhmsft_0-1732674424290.png

 

 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:

vlinhuizhmsft_1-1732674657746.png

 

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.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.