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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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