Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Creating a new column based on multiple, duplicate entries in other columns.

Hi PBI Community,

I have 3 tables Tab1, Tab2 and Tab3 with multiple columns and status for each ID.  I have joined the 3 tables and currently my final table looks like below. These Ids goes to different status on the same date or different date until it Passes or Fails. I want an output as shown below so that the most current status of a particular Id can be identified on a particular day and unique count of ids can be calculated as per the final status on that day.

Please help me how can I create the OUTPUT column. If there a better way to get the solution please recommend that too. Thanks in advance!

IDStatus in Tab2 and Tab3Tab NameMap Status in Tab1OUTPUT
1InputTab1ExceptionTab1,Tab2,Tab3
2FailTab3 Tab2,Tab3
1EditTab2ExceptionTab1,Tab2,Tab3
3PassTab2 Tab1,Tab2
5FailTab3 Tab1,Tab3
1PassTab3 Tab1,Tab2,Tab3
2InputTab2 Tab2,Tab3
3InputTab1ExceptionTab1,Tab2
5InputTab1CompleteTab1,Tab3