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
powerbi2srm
Resolver II
Resolver II

Problema con COUNT y los blank values

Estoy tratando de calcular el número de filas de una tabla.

Concretamente, este es el resultado que estoy buscando en una visualización para la medida calculada COUNT:

ID_product_table_1COUNT(ID_product_table_1)ID_product_Table2
11 
21 
313
414
Total4 

 

 

Sin embargo, solo funciona el COUNT cuando en la visualización coinciden los ID's de ID_product_table_1 y ID_product_table_2 (en este ejemplo serían los ID's 3 y 4

ID_product_table_1COUNT(ID_product_table_1)ID_product_table2
1  
2  
313
414
Total4 

 

El cálculo de count_table_1 que estoy utilizando es simple: COUNT(table1[ID_product_table_1].

 

No entiendo cuál es le problema alguien puede ayudarme? Muchas gracias

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@powerbi2srm , Better to have a common product table joined with both tables and then have count measure from both

 

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@powerbi2srm , Better to have a common product table joined with both tables and then have count measure from both

 

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

Thank you! It`s useful to solve my problem but, out of curiosity, is there no other way than creating a new table? 

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.