This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 | ||
| Resource | Week | Targets |
| 126 | 9/6/2021 | 40 |
| 126 | 9/13/2021 | 40 |
| 126 | 9/20/2021 | 32 |
| 126 | 9/27/2021 | 40 |
| 126 | 10/4/2021 | 32 |
| 126 | 10/11/2021 | 40 |
| 126 | 10/18/2021 | 40 |
| 126 | 10/25/2021 | 40 |
| 128 | 9/6/2021 | 32 |
| 128 | 9/13/2021 | 40 |
| 128 | 9/20/2021 | 32 |
| 128 | 9/27/2021 | 40 |
| 128 | 10/4/2021 | 40 |
| 128 | 10/11/2021 | 40 |
| 128 | 10/18/2021 | 32 |
| 128 | 10/25/2021 | 24 |
| Weekly Actuals | ||
| Resource | Week | Actuals |
| 126 | 9/6/2021 | 10 |
| 126 | 9/13/2021 | 20 |
| 126 | 9/20/2021 | 36 |
| 126 | 10/11/2021 | 40 |
| 126 | 10/18/2021 | 31 |
| 126 | 10/25/2021 | 40 |
| 128 | 9/6/2021 | 32 |
| 128 | 9/13/2021 | 40 |
| 128 | 9/20/2021 | 32 |
| 128 | 9/27/2021 | 38 |
| 128 | 10/4/2021 | 40 |
| 128 | 10/11/2021 | 18 |
| 128 | 10/25/2021 | 24 |
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) | ||
| Resource | Week | Actuals |
| 126 | 9/6/2021 | 10 |
| 126 | 9/13/2021 | 20 |
| 126 | 9/20/2021 | 36 |
| 126 | 9/27/2021 | 40 |
| 126 | 10/4/2021 | 32 |
| 126 | 10/11/2021 | 40 |
| 126 | 10/18/2021 | 31 |
| 126 | 10/25/2021 | 40 |
| 128 | 9/6/2021 | 32 |
| 128 | 9/13/2021 | 40 |
| 128 | 9/20/2021 | 32 |
| 128 | 9/27/2021 | 38 |
| 128 | 10/4/2021 | 40 |
| 128 | 10/11/2021 | 18 |
| 128 | 10/18/2021 | 32 |
| 128 | 10/25/2021 | 24 |
Sincerely,
Krishna.
Solved! Go to 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:
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.
Have you checked
Solved: Inserting rows for missed days - Microsoft Power BI Community
Cheers
CheenuSing
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:
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.
Yes, I try to download the file from link shared with me, unfortunately I couldn't do it.
Sincerely,
Krishna.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 24 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 24 | |
| 19 |