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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
macg1976
New Member

Cálculo peso relativo DAX-PBI

Necesito ayuda con las formulas DAX para cálcular la tercera columna. La primera fila es el cálculo de 100/300 (300 es la suma de proyectos tipo A).....parece simple pero no me resulta con distintas funciones.

 

gracias, Mauricio

 

TipoPresupuestoPeso relativo por tipo
Proyecto tipo A1000,333
Proyecto tipo A800,267
Proyecto tipo A1200,400
Proyecto tipo B900,375
Proyecto tipo B1500,625
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @macg1976 ,

 

You can add a calculated column with below formula:

Diff =
[Presupuesto]
    / CALCULATE (
        SUM ( T2[Presupuesto] ),
        FILTER ( ALL ( T2 ), [Tipo] = EARLIER ( T2[Tipo] ) )
    )

 

Regards,
Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @macg1976 ,

 

You can add a calculated column with below formula:

Diff =
[Presupuesto]
    / CALCULATE (
        SUM ( T2[Presupuesto] ),
        FILTER ( ALL ( T2 ), [Tipo] = EARLIER ( T2[Tipo] ) )
    )

 

Regards,
Xiaoxin Sheng

Excellent, thank you very much ..... greetings

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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