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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jfvaldes9876
New Member

Multiply 2 columns from different tables

Hi everyone!

 

I want to know how can I multiply 2 different columns (Q and Price), of different tables. Both tables have 3 columns:

-Date (D-M-Y)

-Hour

-Q (HP CHACAYES) or Price (BA S/E SAUZAL)

So my question is How to get a new column, that is called "Revenues", and is the result of the product between Q*Price, for each hour-day-month-year. 

I am begginer on Power  BI, so any help is well received!!

 

Thanks!

 

jfvaldes9876_0-1621958165678.pngjfvaldes9876_1-1621958194921.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jfvaldes9876 ,

 

You can merge like

6.png

Then expand the table to get the result. Now you can simply multiply the two columns together.

5.png

 

Calculated column: 

Column = [Price]*[Table.Q]

Measure:

Measure = MAX('Merge1'[Price])*MAX('Merge1'[Table.Q])

7.png

 

 

 

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @jfvaldes9876 ,

 

You can merge like

6.png

Then expand the table to get the result. Now you can simply multiply the two columns together.

5.png

 

Calculated column: 

Column = [Price]*[Table.Q]

Measure:

Measure = MAX('Merge1'[Price])*MAX('Merge1'[Table.Q])

7.png

 

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

selimovd
Super User
Super User

Hey @jfvaldes9876 ,

 

yes, sure. You can filter the values from the other table by the values of the row.

Try the following approach:

Sales =
VAR vRowFecha = FirstTable[fecha_opreal]
VAR vRowHora = FirstTable[hora_operal]
VAR vResult =
    CALCULATE(
        SUM( SecondTable[BA S/E SAUZAL 110KV SECCION 1] ),
        SecondTable[fecha] = vRowFecha,
        SecondTable[hora] = vRowHora
    )
RETURN
    FirstTable[HP CHACAYES] * vResult

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
amitchandak
Super User
Super User

@jfvaldes9876 , I am not able to see the column name you are mentioning?

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors