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
Syndicate_Admin
Administrator
Administrator

suma con varios archivadores y una tabla relacionada

Estoy tratando de crear una medida que calcule la suma de todo el gasto para "Tipo" (A) donde "Transpo" es igual (coche, barco, camión, bicicleta) mientras que excluye las Cuentas 9,10,11. ¿Alguien puede ayudarme con esto? * La columna Transpo está en una tabla separada*

Tipo gastarCuenta Transpo Id
A 20,000,000 1 100
A20,000,0002101
A20,000,0003102
A20,000,0004103
A20,000,0005104
A50,000,0006105
A10,000,0007102
A10,000,0008103
A50,000,0009104
A50,000,00010105
A50,000,00011106
B10,000,0003107
B10,000,0003108

Transpo id Transpo
100Coche
101Barco
102Camión
103Bicicleta
104Avión
105Helicóptero
106Scooter
107Tablero
108Skate
2 ACCEPTED SOLUTIONS
Syndicate_Admin
Administrator
Administrator

@dw700d , suponiendo que la tabla 1 y la tabla 2 estén conectadas

calculate(sum(Table[Spend]), filter(Table, Table[Type] á"A" && not(Table[Account] in ?9,10,11')), filter(Table2, table2[Transpo] in'car", "boat", "truck" , "bike"))

View solution in original post

Hola @dw700d
Parece que te perdiste el nombre de la columna en el filtro
FILTER('All Locations','All Locations'[Column]'"CELL","CELL DAS","CELL CO","CELL NODE", "SMART CELL", "MICROWAVE"-))

View solution in original post

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

@amitchandakgracias, vea el dax a continuación
Total NON QOZ PO - CALCULATE( SUM('GSCS PO Commitment'[Valor total de pedido]),
FILTER('GSCS PO Commitment',[QOZ Status Type] á"Ubicación no-QOZ" &&
NO 'Compromiso de PO GSCS'[Código de cuenta]
IN"2003.92C","2003.510C","2003.399C"-),FILTER('Todas las ubicaciones','CELL","CELL DAS","CELL CO","CELL NODE", "SMART CELL", "MICROWAVE"))

Hola @dw700d
Parece que te perdiste el nombre de la columna en el filtro
FILTER('All Locations','All Locations'[Column]'"CELL","CELL DAS","CELL CO","CELL NODE", "SMART CELL", "MICROWAVE"-))

Syndicate_Admin
Administrator
Administrator

@dw700d , suponiendo que la tabla 1 y la tabla 2 estén conectadas

calculate(sum(Table[Spend]), filter(Table, Table[Type] á"A" && not(Table[Account] in ?9,10,11')), filter(Table2, table2[Transpo] in'car", "boat", "truck" , "bike"))

Gracias @amitchandak

Mis tablas están conectadas, pero recibo el siguiente mensaje a continuación

¿Alguna sugerencia?

dw700d_0-1611229075013.png

@dw700d , puede compartir la fórmula, que usó?

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.