Forum Discussion

smcorrigan's avatar
smcorrigan
New Member
10 years ago

Calculate Columns across different tables

Hello all

 

I am very new to DAX and Power BI so I apoligise for the probably simple question...

 

I have six different database tables that contain Nationality information. Each table represents a different Business Unit, however, all the tables contain the same information (the exact same software system for all). I am looking to collate two pieces of information:

 

1) The total number of nationalities

2) Total number 'on-roll'

 

I have managed to complete this for each Business Unit individually, however, I am now trying to get a Group level view, and am struggling...

 

Per Business Unit I have the fields txtNationality and txtID (filtered to 1 which is system status for current). I simply Count Distinct ID numbers against each Nationality which seems to work fine. I now need to do this for all 6 Business Units together, though it could be possible that across the 6 different systems someone may have the same txtID number.

 

Can anyone please advise how this may be completed? I have read about using the RELATED function, ADD COLUMNS, SUM etc. but cannot seem to get this to work. I'm not sure I am managing the relationships between the tables correctly.

 

Thanks very much in advance for any help.

2 Replies