cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

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:

 month value jan 2 feb 3 mar 5

table2:

 xx2 1 xx3 2 xx4 3
1 ACCEPTED SOLUTION
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:

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.

3 REPLIES 3
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:

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.

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

Helper II

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:

 month value jan 2 feb 3 mar 5

table2:

 xx2 1 xx3 2 xx4 3

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors