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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Gipardos
Frequent Visitor

Analisis comparativo

Hola,

 

Tengo una consulta sobre como generar un analisis de comparacion. 

Se tiene una tabla resumen donde se obtiene los numeros de produccion de cierto material, y se quiere comparar con el total de estimacion que nace de un resumen de otra tabla. 

 

De la tabla grande, estan todos los detalles de produccion que se quiere comparar con el total de estimación.  

 

¿Como se puede realizar?

ModeloModelo

EstimacionesEstimacionesEjemploEjemplo

1 ACCEPTED SOLUTION
v-yohua-msft
Community Support
Community Support

Hi, @Gipardos 

 

Based your information, I create a table

 

vyohuamsft_0-1709105764325.png

 

Create two measures, you can try these DAX:

Difference = CALCULATE(SUM('Table'[Real])-SUM('Table'[Estimate]),'Table'[Region]='Table'[Region] )
Difference total = CALCULATE(SUM('Table'[Estimate total]) - SUM('Table'[Real]),'Table'[Region]='Table'[Region])

 

Put them in the table view, here is my preview:

 

vyohuamsft_1-1709105991968.png

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Gipardos
Frequent Visitor

Thank you,

Your help helped me

 

 

 

v-yohua-msft
Community Support
Community Support

Hi, @Gipardos 

 

Based your information, I create a table

 

vyohuamsft_0-1709105764325.png

 

Create two measures, you can try these DAX:

Difference = CALCULATE(SUM('Table'[Real])-SUM('Table'[Estimate]),'Table'[Region]='Table'[Region] )
Difference total = CALCULATE(SUM('Table'[Estimate total]) - SUM('Table'[Real]),'Table'[Region]='Table'[Region])

 

Put them in the table view, here is my preview:

 

vyohuamsft_1-1709105991968.png

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.