Forum Discussion

MarmiteLove's avatar
MarmiteLove
Frequent Visitor
3 years ago
Solved

Collating data from different sources and different types

Hello all,

 

I have tried some extensive searching on this topic but can't find a solution anywhere. What I'm trying to do is marry up two different data types, find the commonality between them and append this to one of the datasets. Essentially have a second "reference list" from which a value is looked up and appended to an extra column in the master list. Both data sources are excel that have been connected within the PBI Desktop file. By way of explanation:

 

Dataset 1 (the "master" dataset)

 

CategoryCompletedLevelReference
PlasteringYesTJ01
PlasteringYesTJ01
PlasteringYesTJ02
DecoratingYesTJ01
DecoratingYesTJ03

 

Dataset 2 (the "reference" dataset)

 

LevelReferenceExpected Records
TJ014
TJ024
TJ034
TJ046

 

Then grab data from "LevelReference" from the Dataset 2 and apply into the "Expected Completions" column in Dataset 1:

 

CategoryCompletedLevelReferenceExpected Records
PlasteringYesTJ014
PlasteringYesTJ014
PlasteringYesTJ024
DecoratingYesTJ014
DecoratingYesTJ036

 

What I can then do is is calculate the number of records against the expected number for a given level, e.g. on TJ01 I am expecting 4, I can use some basic PBI to calculate there are 3 records on TJ01, so 75% completion on that level. I think this part is fairly easy to manipulate, it's effectively doing a "VLOOKUP" type activity from the master list to the reference list to assign an expected number of records to each record so the data is available. I have tried to connect the datasets separately and analyse from there, but can't get it to work so I think I need the data in a single table.

 

Thank you and hopefully this makes sense!

  • Use Power Query to merge the tables on the Level Reference column

2 Replies

  • Use Power Query to merge the tables on the Level Reference column

  • MarmiteLove's avatar
    MarmiteLove
    Frequent Visitor

    Thanks - took a few minutes to get my head around it, but it did work!