cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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: | |

View solution in original post

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: | |

View solution in original post

macg1976 Frequent Visitor
Frequent Visitor

Re: Cálculo peso relativo DAX-PBI

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

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 5 members 2,002 guests
Recent signins:
Please welcome our newest community members: