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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
anthlen
Frequent Visitor

Calculating sum of two non related data sets

Hi All,

 

I would like to calculate a sum of two data sets that are non related-  what is the best practice for this.  Should I do this in Dax or in SQL?  

The tables come from two different data sets- in one case a roster and then one case a recruiting system where they are candidates

 

How do i add both East up into one chart so that I can get 3?

 

In excel i would filter the data from each set and then add the two cells.

 

 

Here is an example

Employee Roster    
EmployeeDivisionHire TypeSale TypeMonth HiredQuarter
AEastInternalSeller11
BEastExternalMgr21
CEastExternalSeller31
DEastExternalSeller42
EWestExternalSeller52
FEastExternalSeller62

 

Pivot table

Hire TypeExternal
Sale TypeSeller
Quarter2
  
DivisionCount of Candidate
East2
West1
Grand Total3

 

 Data set 2- candidate information

To be Hired     
CandidateDivisionHire TypeSale TypeHiring StatusMonth HiredQuarter
GEastInternalSellerOffered11
HWestExternalMgrSourced21
IEastExternalSellerHired31
JEastExternalMgrOffer Accepted42
KWestInternalSellerFuture Start52
LEastExternalSellerFuture Start62

 

Pivot Table

Hire TypeExternal
Sale TypeSeller
Quarter2
Hiring Status(Multiple Items)
  
Row LabelsCount of Employee
East1
Grand Total1
1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @anthlen,

 

According to your description, you want to combine two datasets so that you can sum the total value from each dataset, right?

 

You can achieve this in Query Editor mode.

1. Filter rows for each table.

1.PNG

 

2. Append two tables as a new single table.

3. Pivot the new table.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @anthlen,

 

According to your description, you want to combine two datasets so that you can sum the total value from each dataset, right?

 

You can achieve this in Query Editor mode.

1. Filter rows for each table.

1.PNG

 

2. Append two tables as a new single table.

3. Pivot the new table.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Salvador
Responsive Resident
Responsive Resident

Hi,

 

You can use measures, use the calculate function to get the data from each table 😄

Each table has different filters on it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.