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
AFra
Helper III
Helper III

Agregar columna que resume una columna de otra tabla

Hola

Tengo dos mesas:

Un.

SociedadObjetivo
A100
B200
C1000
D1200

B.

FechaSociedadCantidad
29/02/2020A10
31/01/2020B12
29/02/2020C20
31/01/2020D10
29/02/2020A5
31/01/2020B10
29/02/2020C8
31/01/2020D12

Quisiera añadir una nueva columna en la tabla A que resume las cantidades (por sociedad), pero sólo para 29/02/2020. Por lo tanto, se vería así:

Un.

SociedadObjetivoCantidad
A10015
B200
C100028
D1200

Me tomé unos meses de power bi y perdí todos mis conceptos básicos...

¿Puede alguien ayudarme con esto?

¡THanks por adelantado!

Ana

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @AFra,

¿Esta fecha filtre la base dinámica en el filtro/cortador? Si este es un caso, me gustaría sugerirle que escriba una fórmula de medida para calcular. (columna/tabla calculada actual no puede interactuar dinámicamente con el filtro/cortador)

Measure =
CALCULATE (
    SUM ( TableB[Amount] ),
    FILTER ( ALLSELECTED ( TableB ), [Society] IN VALUES ( TableA[Society] ) ),
    VALUES ( TableB[Date] )
)

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
camargos88
Community Champion
Community Champion

Hola @AFra ,

Puede probar este código para la columna calculada:

CALCULATE(SUM('Table'[Amount]); FILTRO(ALL('Tabla'); 'Tabla'[Sociedad] - EARLIER('Tabla (2)'[Sociedad]) && 'Tabla'[Fecha] - FECHA(2020; 2; 29)))
Si lo necesita para las medidas, cambiará un poco.
Ricardo


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Funciona muy bien, ¡muchas gracias!

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.