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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ShradhaJain
Frequent Visitor

Adding values of two columns in two tables

Hi, 

 

I have two tables with SQL Server as source in my Power BI Report 

Name Date Calc1
ABC31st Dec,201850
ABC31st Dec,201990
ABC31st Dec,202010
ABC31st Dec,202140
Name Date Calc2
PQR31st Dec,2018100
PQR31st Dec,2019110
PQR31st Dec,2020200
PQR31st Dec,2021340

I want a new column which is = Calc1 +Calc2 . How can I do it ?

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@ShradhaJain ,

 

You may try Merge Queries (Table.NestedJoin) and Append Queries (Table.Combine) in Query Editor.

Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@ShradhaJain ,

 

You may try Merge Queries (Table.NestedJoin) and Append Queries (Table.Combine) in Query Editor.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable


@ShradhaJain wrote:

Hi, 

 

I have two tables with SQL Server as source in my Power BI Report 

Name Date Calc1
ABC31st Dec,201850
ABC31st Dec,201990
ABC31st Dec,202010
ABC31st Dec,202140
Name Date Calc2
PQR31st Dec,2018100
PQR31st Dec,2019110
PQR31st Dec,2020200
PQR31st Dec,2021340

I want a new column which is = Calc1 +Calc2 . How can I do it ?



@ShradhaJain wrote:

Hi, 

 

I have two tables with SQL Server as source in my Power BI Report 

Name Date Calc1
ABC31st Dec,201850
ABC31st Dec,201990
ABC31st Dec,202010
ABC31st Dec,202140
Name Date Calc2
PQR31st Dec,2018100
PQR31st Dec,2019110
PQR31st Dec,2020200
PQR31st Dec,2021340

I want a new column which is = Calc1 +Calc2 . How can I do it ?



@ShradhaJain wrote:

Hi, 

 

I have two tables with SQL Server as source in my Power BI Report 

Name Date Calc1
ABC31st Dec,201850
ABC31st Dec,201990
ABC31st Dec,202010
ABC31st Dec,202140
Name Date Calc2
PQR31st Dec,2018100
PQR31st Dec,2019110
PQR31st Dec,2020200
PQR31st Dec,2021340

I want a new column which is = Calc1 +Calc2 . How can I do it ?





Hi,

 

You can summarize with a calculate function:

 

Sum Calc = CALCULATE (SUM (Table1 [Calc1]) + SUM (Table2 [Calc2]))

 

But first you must link both tables in the data model:

Help Case 01.PNG

 

This is how it looks:

Help Case.PNG

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.