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

Contar el número de valores entre un rango de otra tabla

Hola, buscando sugerencias sobre cómo resolver esto. Tengo una tabla tabla1 que tiene la columna precio, artículo, subartículo y otra tabla tabla 2 con artículo, subartículo, precio inicial, precio final. Quiero crear una columna en la tabla 2 que proporcione un recuento de los registros con el precio en la tabla 1 que se encuentra entre el precio inicial y los valores del precio final de la tabla 2 para un artículo en particular, subelemento.

ss_pbi_og_0-1669404091214.png

ss_pbi_og_1-1669404103810.png

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

@Ashish_Mathur funcionó exactamente como quería. Gracias.

De nada.

Syndicate_Admin
Administrator
Administrator

Hola

Escribir esta fórmula de columna calculada en la Tabla2

Count = calculate(countrows(table1),filter(table1,table1[item]=before(table2[item])&&table1[subitem]=before(table2[subitem])&&table1[price]>=before(table2[startprice])&&table1[price]<=before(table2[endprice])))

Espero que esto ayude.

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.