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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sam_nik12345
Helper II
Helper II

multiplying values from other table

I want to add another column in table 1 by multiplying values from table2. How can I achieve this?

Kinldy help.

 

table1:

monthvalue
jan2
feb3
mar5

table2:

xx21
xx32
xx43
1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @sam_nik12345 ;

You could create a column as follows:

Column = [value]* CALCULATE(SUM('Table (2)'[value]),FILTER('Table (2)',RANKX('Table (2)',[index],,ASC)= RANKX('Table',[month],,ASC)))

The final output is shown below:

vyalanwumsft_0-1641882801291.png

If you multiply the rows of the first table by the rows of the second table, how can you determine which row is the corresponding row.can you tell me your logic?


Best Regards,
Community Support Team_ Yalan Wu
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
v-yalanwu-msft
Community Support
Community Support

Hi, @sam_nik12345 ;

You could create a column as follows:

Column = [value]* CALCULATE(SUM('Table (2)'[value]),FILTER('Table (2)',RANKX('Table (2)',[index],,ASC)= RANKX('Table',[month],,ASC)))

The final output is shown below:

vyalanwumsft_0-1641882801291.png

If you multiply the rows of the first table by the rows of the second table, how can you determine which row is the corresponding row.can you tell me your logic?


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@sam_nik12345 , You can what is the basis of joining

 

You can have like

New column in Table 1 = [value] * sum(Table2[value])

 

of refer the ways to connect the table with each other

 

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak 

This formula New column in Table 1 = [value] * sum(Table2[value]) is working but it is multiplying sum(table2) with each row of table1.

I want to create a column with row * row from the tow tables. Can you you please suggest?

table1:

monthvalue
jan2
feb3
mar5

table2:

xx21
xx32
xx43

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.