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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
rakeshsaini
Helper II
Helper II

Get the Multipication of two Column

Hi Team ,

 I have a TABLE1 , TABLE1 have COLUMN A , COLUMN  B . And I also have Another Table TABLE2 , it have COLUMN C , COLUMN D. Column A have Realtionship with Column B (Many to one) .

 

I Want to Get the  Multipication of Values Of COLUMN B AND COLUMN D . How can i get it ?

2 ACCEPTED SOLUTIONS

 

How about this

 

New Column = Table1[Total Potential Coils Involved] * RELATED('Table2'[PoundsPerCoil])

And if you want to sum up that column create a measure over it 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Hi @rakeshsaini,

The syntax of your formula: result=SUMX(TABLE1,Related(TABLE2[PoundsPerCoil]) * TABLE1[Total Potential Coils Involved])  is right. While you should create a calculated column in Table1 based on my understanding.

 

You can create a calculated column in Table1 using the formula.

Related(TABLE2[PoundsPerCoil]) * TABLE1[Total Potential Coils Involved]


What's your opinion?

Best Regards,
Aneglia

View solution in original post

12 REPLIES 12
rakeshsaini
Helper II
Helper II

I am Thniking that , is it Possible to Create a Another Table With one Column , that Column Have Multipication Data of those Columns.

Well, it's quite logical that column A has a relation with column B as they are in the same table: probably the value in column B belongs to the value in column A in the same row...

But what would be the relationship between Table1 and Table2???

 

Anyhow, as you can see in this video, I created some data in Excel with an additional column COL A to link Table 2 to Table 1 and used Power Query to load them in the datamodel, merge them together and multiply columns B and D.

 

Similarly, you can merge 2 tables in the Query Editor of Power BI.

Specializing in Power Query Formula Language (M)

Thanks @MarcelBeug ,

TABLE1 and TABLE2 has Many to one Realtionship .

Yes I Expain this Problem.

TABLE1 Data Columns , Plz see below

 

ask2.PNGAsk3.PNG

 

and TBALE2 has below Columns

 

ask.PNG

 

-TBALE1 COLUMN "Part Number Size" has 'Many to one' Realtionship with TABLE2 COLUMN "ProductID" .

Now , I Need to Calculate the Multipication of TABLE1 COLUMN 'Total Potential Coil ' with TABLE2 COLUMN 'Pound Per Coil' respectively .  it Means we will do Multipication Using Many to one Realtionship.!!!

I used this Formula for Now !!!

 

Measure--

 

result=SUMX(TABLE1,Related(TABLE2[PoundsPerCoil]) * TABLE1[Total Potential Coils Involved])

 

 

is it correct?

Hi @rakeshsaini,

The syntax of your formula: result=SUMX(TABLE1,Related(TABLE2[PoundsPerCoil]) * TABLE1[Total Potential Coils Involved])  is right. While you should create a calculated column in Table1 based on my understanding.

 

You can create a calculated column in Table1 using the formula.

Related(TABLE2[PoundsPerCoil]) * TABLE1[Total Potential Coils Involved]


What's your opinion?

Best Regards,
Aneglia

 

How about this

 

New Column = Table1[Total Potential Coils Involved] * RELATED('Table2'[PoundsPerCoil])

And if you want to sum up that column create a measure over it 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thanks @Phil_Seamark , Yes Now its giving right Calculations.

Thanks @Phil_Seamark ,

Actually I am also Confused that it will work or not ? i mean it will give right Answer or not?

It should work and should be easy enough to test on some cut down tables.  


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi @rakeshsaini,

 

Could you not possible combine all the data into one table in the Query Editor?


Then you would have all the columns in one table, and then the multiplication would be easier?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ ,i did not got it , can you clairfy ..! How can i Merge Two Table in Single one .

Hi @rakeshsaini,

 

In the Query Editor you can use the Merge Queries.

 

When the Merge Queries Window opens, select the columns that you created as part of your relationship.

 

Power BI - Merge Queries.png

 

As well as doing it in the Query Editor is easier, as well as being more efficient in your Power BI Model.

 

But as suggested below there is always more than one way to achieve the same result.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors