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
Anonymous
Not applicable

Calcular el promedio de SUMA fiscal por clase/categoría

¡Hola! Me vendría bien algo de ayuda tratando de llegar a una medida para calcular el promedio de SUM (trabajo y material) por año fiscal por clase/categoría, creo que tendría que usar SUMX o AVERAGEX? Cualquier ayuda sería muy apreciada!

table_data.PNGrelationship_table.PNG

1 ACCEPTED SOLUTION

Hola @mrmiyagi ,

Por favor, intente esto:

AVG = 
AVERAGEX (
    ALLEXCEPT ( Labor, Labor[Asset Class], Labor[Asset Category] ),
    [SumLabor_Material]
)

v-xuding-msft_0-1597390711481.png

Best Regards,
Xue Ding
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

4 REPLIES 4
Fowmy
Super User
Super User

@mrmiyagi


Sus dos medidas para la mano de obra y el material promedio deben ser: (Corregir los nombres de tabla y campo)

Avg Labour = 

AVERAGEX(
    SUMMARIZECOLUMNS(
        'BookedMaterial'[Category],
        'BookedMaterial'[Class],
        'Date'[Fiscal Year]
    ),
    SUM('Booked Labour_Merged'[Labour Cost])
)    

Avg Material = 

AVERAGEX(
    SUMMARIZECOLUMNS(
        'BookedMaterial'[Category],
        'BookedMaterial'[Class],
        'Date'[Fiscal Year]
    ),
    SUM('Booked Labour_Merged'[Material Cost])
)    

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up a la derecha si le gusta esta respuesta 🙂

YoutubeLinkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Gracias por la respuesta! Así que con estas medidas promedio, ¿las añadiría junto con otra medida para la SUMA total de mano de obra combinada + materiales?

Hola @mrmiyagi ,

Por favor, intente esto:

AVG = 
AVERAGEX (
    ALLEXCEPT ( Labor, Labor[Asset Class], Labor[Asset Category] ),
    [SumLabor_Material]
)

v-xuding-msft_0-1597390711481.png

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Gracias esto funcionó perfectamente!

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.