Forum Discussion
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!
| ID | Status in Tab2 and Tab3 | Tab Name | Map Status in Tab1 | OUTPUT |
| 1 | Input | Tab1 | Exception | Tab1,Tab2,Tab3 |
| 2 | Fail | Tab3 | Tab2,Tab3 | |
| 1 | Edit | Tab2 | Exception | Tab1,Tab2,Tab3 |
| 3 | Pass | Tab2 | Tab1,Tab2 | |
| 5 | Fail | Tab3 | Tab1,Tab3 | |
| 1 | Pass | Tab3 | Tab1,Tab2,Tab3 | |
| 2 | Input | Tab2 | Tab2,Tab3 | |
| 3 | Input | Tab1 | Exception | Tab1,Tab2 |
| 5 | Input | Tab1 | Complete | Tab1,Tab3 |
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26Rh3SUEpkzv-Kj15El?e=89XLXJ
1 Reply
- AhmedxSuper User
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26Rh3SUEpkzv-Kj15El?e=89XLXJ