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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Garvit08
Frequent Visitor

Calcular la suma del número entero de promedios usando Medir

FechaUnidadLíneaLineCostCategoría de trabajo
17/06/2020AA_L1

200

Día
17/06/2020AA_L1300Noche
17/06/2020AA_L1100Horas extras
17/06/2020AA_L2600Día
17/06/2020AA_L2100Noche
17/06/2020AA_L2200Horas extras
18/06/2020AA_L1

300

Día
18/06/2020AA_L1200Noche
18/06/2020AA_L1400Horas extras
18/06/2020AA_L2200Día
18/06/2020AA_L2300Noche
18/06/2020AA_L2100Horas extras

Aquí te hago creo una medida que tomará el promedio de Costo de línea por línea y luego lo sumar para varias fechas:

como para el 17/06/2020 A_L1 -> promedio de 200

para 18/06/2020 A_L1 -> promedio de 300 , por lo que la suma de la media de 500

UnidadLíneaLine_Cost
AA_L1500
AA_L2500

Gracias.

1 ACCEPTED SOLUTION

Hola @Garvit08 ,

Por favor, cree una nueva medida como se muestra a continuación y aplíquela en Matrix para reemplazar la actual:

Medidas ?
SUMX(VALUES('Table'[Work Category]),[Su medida actual])

Saludos

Rena

Community Support Team _ Rena
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

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

Hola @Garvit08 ,

Puede crear una medida como se indica a continuación:

Measure = 
SUMX (
    VALUES ( 'Table'[Date] ),
    SUMX ( VALUES ( 'Table'[Line] ), AVERAGE ( 'Table'[LineCost] ) )
)

sum average.JPGSaludos

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User
Mariusz
Community Champion
Community Champion

Hola @Garvit08

Prueba algo como

Measure = 
SUMX(
    SUMMARIZE( 'Table', 'Table'[Date], 'Table'[Line] ),
    CALCULATE( AVERAGE( 'Table'[LineCost] ) )
)

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

Gracias por la respuesta, estoy recibiendo los resultados deseados, pero hay un problema. El total de todos los valores de fila son incorrectos,

Hola

Puede descargar mi archivo PBI desde aquí.

Espero que esto ayude.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hola @Garvit08 ,

Por favor, cree una nueva medida como se muestra a continuación y aplíquela en Matrix para reemplazar la actual:

Medidas ?
SUMX(VALUES('Table'[Work Category]),[Su medida actual])

Saludos

Rena

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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