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
syddemo
Regular Visitor

Obtenga promedio usando solo la columna Categoría principal, pero también incluya subcategorías en la tabla.

Tengo datos de estos datos de la columna y quiero la salida como Promedio por columna. ¿Cómo hacerlo?

El problema principal es que las tres columnas son de tablas diferentes, pero me he unido a ellas.

PaísEstadoPoblaciónPromedio por país
IndiaPunjab20004750
IndiaHaryana40004750
IndiaHimachal60004750
Indiahacia arriba70004750
CanadáToronto1000015000
CanadáColumbia2000015000
1 ACCEPTED SOLUTION
dedelman_clng
Community Champion
Community Champion

Cree una medida:

Avg by Country =
CALCULATE (
    AVERAGE ( 'Table'[population] ),
    ALLEXCEPT ( 'Table', 'Table'[Country] )
)

2020-08-07 09_27_30-Untitled - Power BI Desktop.png

Espero que esto ayude

David

View solution in original post

4 REPLIES 4
dedelman_clng
Community Champion
Community Champion

Cree una medida:

Avg by Country =
CALCULATE (
    AVERAGE ( 'Table'[population] ),
    ALLEXCEPT ( 'Table', 'Table'[Country] )
)

2020-08-07 09_27_30-Untitled - Power BI Desktop.png

Espero que esto ayude

David

Hola @dedelman_clng. Gracias por su respuesta. ¿Funcionará esto incluso si estoy usando todas las coumns de diferentes tablas (uniones)?

Como @az38 dicho, sí, si el modelo es correcto. ¿Puede compartir una captura de pantalla de su modelo que muestre las tablas y sus relaciones?

az38
Community Champion
Community Champion

@syddemo

debería funcionar si tienes relaciones correctas.

o ¿qué quieres decir con JOIN exactamente? ¿SQL-JOIN o DAX-JOIN o qué?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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.