Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Identify and insert missing rows

Hi Team,

Please help if there any mechanism on identify and insert missing rows. We are working on weekly target and actuals. In actuals table we are capturing weekly actuals by resource and in target table we have pre defined weekly targets by resource. There are scenarios a particular resource not met or not filled in his/her weekly actuals at all. In that scenario we wanted to identify which is the week the particular resource misses actuals and append the relavence row from weekly targets. Below the tables for reference. Week starts from every monday. 

 

Weekly Targets
ResourceWeekTargets
1269/6/202140
1269/13/202140
1269/20/202132
1269/27/202140
12610/4/202132
12610/11/202140
12610/18/202140
12610/25/202140
1289/6/202132
1289/13/202140
1289/20/202132
1289/27/202140
12810/4/202140
12810/11/202140
12810/18/202132
12810/25/202124

 

Weekly Actuals
ResourceWeekActuals
1269/6/202110
1269/13/202120
1269/20/202136
12610/11/202140
12610/18/202131
12610/25/202140
1289/6/202132
1289/13/202140
1289/20/202132
1289/27/202138
12810/4/202140
12810/11/202118
12810/25/202124

 

So in Weekly Actuals table we see for Resource 126 the weeks 9/27/2021 and  10/04/2021 are missed and for Resource 128 the weeks 10/18/2021 is missing. How do I identify these missing weeks and bring in those details from Weekly Targets to Weekly Actuals table.  Expected output should like below.

 

Weekly Actuals (Expected Result)
ResourceWeekActuals
1269/6/202110
1269/13/202120
1269/20/202136
1269/27/202140
12610/4/202132
12610/11/202140
12610/18/202131
12610/25/202140
1289/6/202132
1289/13/202140
1289/20/202132
1289/27/202138
12810/4/202140
12810/11/202118
12810/18/202132
12810/25/202124

 

Sincerely,

Krishna.

1 ACCEPTED SOLUTION

Hi, @Anonymous 

You can copy a new table 'Weekly Targets_copy' and try calculated columns as below:

Actuals = 
LOOKUPVALUE (
    'Weekly Actuals'[Actuals],
    'Weekly Actuals'[Resource], 'Weekly Targets_copy'[Resource],
    'Weekly Actuals'[Week], 'Weekly Targets_copy'[Week]
)
Result = 
IF (
    ISBLANK ( 'Weekly Targets_copy'[Actuals] ),
    'Weekly Targets_copy'[Targets],
    'Weekly Targets_copy'[Actuals]
)

Result will show as below:

153.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Anonymous
Not applicable

Hi CheenuSing,

 

I am having difficulty downloading the link, can please share if there any steps I can follow

 

Sincerely,

Krishna.

Hi, @Anonymous 

You can copy a new table 'Weekly Targets_copy' and try calculated columns as below:

Actuals = 
LOOKUPVALUE (
    'Weekly Actuals'[Actuals],
    'Weekly Actuals'[Resource], 'Weekly Targets_copy'[Resource],
    'Weekly Actuals'[Week], 'Weekly Targets_copy'[Week]
)
Result = 
IF (
    ISBLANK ( 'Weekly Targets_copy'[Actuals] ),
    'Weekly Targets_copy'[Targets],
    'Weekly Targets_copy'[Actuals]
)

Result will show as below:

153.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Yes, I try to download the file from link shared with me, unfortunately I couldn't do it. 

 

Sincerely,

Krishna. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.