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
Piet
Frequent Visitor

Multiple two different columns from two different tables

Hello,

i think it is a simple question :

 

Hwo can i multiple two different columns (cost * sales_quanity) from two different tables:

 

table1

item     cost

4711    99,90

 

table2

item    sales_quantity

4711   300,00

 

Cost-gross= ???????

 

Best regards

PIET

 

 

 

2 ACCEPTED SOLUTIONS
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Piet

 

That's should be easy if you could create a relationship between the two tables.

 

Have you solved the problem with the answers from @quentin_vigne and @alexei7?

 

If you have solved, only thing that you'll have to notice, just always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Piet
Frequent Visitor

it works.

thanks a lot

Piet

View solution in original post

4 REPLIES 4
Piet
Frequent Visitor

it works.

thanks a lot

Piet

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Piet

 

That's should be easy if you could create a relationship between the two tables.

 

Have you solved the problem with the answers from @quentin_vigne and @alexei7?

 

If you have solved, only thing that you'll have to notice, just always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
quentin_vigne
Solution Sage
Solution Sage

Hi @Piet

 

If there is a joint between your 2 tables the formula will be : 

 

Cost-gross = table1[cost] * table2[sales_quantity]

- Quentin

alexei7
Continued Contributor
Continued Contributor

Hi Piet,

 

Yes this should be quite simple. If in the relationships view of Power BI desktop you check that table1 is joined to table2.

Then you can create your formula ("cost * sales_quantity").

 

When you create your table make sure you bring in the "item" field from table1.

 

Thanks

Alex

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.