cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
macg1976 Frequent Visitor
Frequent Visitor

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

Accepted Solutions
Community Support Team
Community Support Team

Re: Cálculo peso relativo DAX-PBI

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

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
2 REPLIES 2
Community Support Team
Community Support Team

Re: Cálculo peso relativo DAX-PBI

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

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
macg1976 Frequent Visitor
Frequent Visitor

Re: Cálculo peso relativo DAX-PBI

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