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

Aplicar fórmula iterativamente

Hola

Tengo una tabla (info_table) con la información que necesito usar para crear una nueva columna en una tabla diferente (data_table).

info_table

promo_nameFecha_inicialFecha_final
Aaa01/12/202003/12/2020
Bbb05/12/202007/12/2020

data_table

IdFecha
102/12/2020
2

04/12/2020

305/12/2020

Columna resultante, en data_table:

promo_name
Aaa
Ninguno
Bbb

Mi fórmula:

promo_name ? IF(data_table[date] >- RELATED(info_table[start_date]) && data_table[date] <- RELATED(info_table[end_date]), RELATED(info_table[promo_name]), "None")

El problema con esta fórmula es que simplemente asigna la primera fila correctamente.

En este momento estoy evitando esto creando una fórmula e insertando las condiciones que quiero manualmente, pero me gustaría que se actualizara correctamente de acuerdo con los diferentes promo_names en info_table.

Cualquier ayuda será apreciada!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@martifapa , Crear una nueva columna en data_table

nueva columna - fusiones(maxx(filter(info_table, info_table[start_date] <-data_table[date] && info_table[end_date] >-data_table[date]),[promo_name]),"None")

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@martifapa , Crear una nueva columna en data_table

nueva columna - fusiones(maxx(filter(info_table, info_table[start_date] <-data_table[date] && info_table[end_date] >-data_table[date]),[promo_name]),"None")

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.