Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Relate many to many between two tables

Hello

Let's see if they can help with the following.

I have two tables:

Tabla_vendedores

apenaranda_0-1681216282987.png

For each seller there are two rows, because what I want is that from the other table of facturas_vendedores create a new column that is importe=amount*bloc1 / amount*bloc2

To know if it is bloc1 or bloc2 first I want the field facturas_vendedores[family] to be equal to the corresponding row of tabla_vendedores[fam] and then choose bloc1 or bloc2 (the latter would put it manually in the formula or automatically, for now manually)

Table facturas_vendedores

apenaranda_1-1681216282993.png

Thank you

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

I solved it using dax with calculate and firstnonblank

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

I solved it using dax with calculate and firstnonblank

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.