Forum Discussion

JeevanMallya's avatar
JeevanMallya
Icon for Resolver II rankResolver II
2 years ago
Solved

Copy a New Column from Table 2 to Table where all the other Row Value Matches

I have a Table called Sprint Master

PROJECT_KEYBOARD_NAMEISSUE_KEYSPRINT_NAMESPRINT_NUMBERINITIAL_ESTIMATECURRENT_ESTIMATESPRINT_REPORT_STATUSIS_ADDED_DURING_SPRINTSTORY_POINTS_COMMITTEDSTORY_POINTS_EXTRA_PULLEDSTORY_POINTS_COMPLETEDSTORY_POINTS_EXTRA_COMPLETEDSTORY_POINTS_NOT_COMPLETEDSTORY_POINTS_REMOVEDISSUE_TYPE_NAMEISSUE_STATUS_NAMEPRIORITYRESOLUTIONCREATEDDetailed_Affected_VersionStory_PointsTask_TypeSTATESTART_DATEEND_DATECOMPLETE_DATESTORY_COMITTEDSTORY_POINTS_COMMITED_START
ABCABC Scrum BoardABC-473ABC Sprint 313133INCOMPLETEDFALSE30nullnull30StoryClosedMajorFixed22-09-2022 11:14:16 +00:00null3nullclosed06-05-2024 13:00:50 +00:0024-05-2024 17:00:00 +00:0027-05-2024 06:32:08 +00:0013
ABCABC Scrum BoardABC-473ABC Sprint 323233INCOMPLETEDFALSE30nullnull30StoryClosedMajorFixed22-09-2022 11:14:16 +00:00null3nullclosed27-05-2024 13:58:34 +00:0014-06-2024 18:00:00 +00:0015-06-2024 10:09:34 +00:0013
ABCABC Scrum BoardABC-473ABC Sprint 333333COMPLETEDFALSE303000StoryClosedMajorFixed22-09-2022 11:14:16 +00:00null3nullclosed17-06-2024 13:01:04 +00:0005-07-2024 19:00:00 +00:0008-07-2024 07:08:23 +00:0013

 

I have another Table called UNIQUE_STORY_POINTS

 

PROJECT_KEYBOARD_NAMEISSUE_KEYSPRINT_NAMESPRINT_NUMBERINITIAL_ESTIMATECURRENT_ESTIMATESPRINT_REPORT_STATUSIS_ADDED_DURING_SPRINTSTORY_POINTS_COMMITTEDSTORY_POINTS_EXTRA_PULLEDSTORY_POINTS_COMPLETEDSTORY_POINTS_EXTRA_COMPLETEDSTORY_POINTS_NOT_COMPLETEDSTORY_POINTS_REMOVEDISSUE_TYPE_NAMEISSUE_STATUS_NAMEPRIORITYRESOLUTIONCREATEDDetailed_Affected_VersionStory_PointsTask_TypeSTATESTART_DATEEND_DATECOMPLETE_DATESTORY_COMITTEDSTORY_POINTS_COMMITED_STARTTOTAL_UNIQUE_STORY_POINTS 
ABCABC Scrum BoardABC-473ABC Sprint 333333COMPLETEDFALSE303000StoryClosedMajorFixed22-09-2022 11:14:16 +00:00null3nullclosed17-06-2024 13:01:04 +00:0005-07-2024 19:00:00 +00:0008-07-2024 07:08:23 +00:00133 

 

In Table UNIQUE_STORY_POINTS there is a column called TOTAL_UNIQUE_STORY_POINTS. I want to copy this column to Table SPRINT_MASTER when there is a exatch match with all the column values of that particular row. Where there is no match add zero (0).

The difference is the SPRINT_MASTER Table has Story points moved across sprints where as in UNIQUE_STORY_POINTS Table i have considered it only once.So to calculate TOTAL_UNIQUE_STORY_POINTS and to build all visuals from SPRINT_MASTER table i would need this.

Can you please help.

  • Hi JeevanMallya,

     

    You can use the Merge option on the Home tab to achieve this. Select the target table, go to Home, and click Merge. From the dropdown menu, select the lookup table. Now set merge keys by holding down CTRL and selecting a column within the target table and its equivalent from the lookup table. Repeat this process until all columns are mapped. A small numeral will show when multiple columns are selected, helping to identify each set of keys.

    Next, use the sideward arrows in the merge result column to expand the desired field. Optionally, replace null with 0.

    Note that when a Merge matches more than 1 row in the lookup table, expanding the column will add a row for each matched result, leading to "duplication" of rows. 

     

    I hope this is helpful.

1 Reply

  • m_dekorte's avatar
    m_dekorte
    Icon for Resident Rockstar rankResident Rockstar

    Hi JeevanMallya,

     

    You can use the Merge option on the Home tab to achieve this. Select the target table, go to Home, and click Merge. From the dropdown menu, select the lookup table. Now set merge keys by holding down CTRL and selecting a column within the target table and its equivalent from the lookup table. Repeat this process until all columns are mapped. A small numeral will show when multiple columns are selected, helping to identify each set of keys.

    Next, use the sideward arrows in the merge result column to expand the desired field. Optionally, replace null with 0.

    Note that when a Merge matches more than 1 row in the lookup table, expanding the column will add a row for each matched result, leading to "duplication" of rows. 

     

    I hope this is helpful.