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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
BobbyDollar
Frequent Visitor

Adding missing calendar month rows to table

Hi

I have have a data table with sales results of Region, Product, Date (only monthly needed) and a Quantity.

BobbyDollar_2-1676294913709.png

I would like to automatically add rows for all Region/Products where the month is missing with Quantity 0. E.g. from DACH and Product M I am missing June as well as Aug - March, so it should add 9 lines with DACH, Product M, missing and so on for the other region/products.

As a result:

BobbyDollar_1-1676294816386.png

Reason is that I want to add a calculated column for the forecast later on, and this might add quantities to the missing month. If I do not have all 12 month line I am missing numbers.

 

I know ... does not sound very professional but i do not know better yet, being under time pressure.

Instead of the month I have a calendar date as well, connected to a date table ...


Any feedback appreciated
Thank you

Robert

 

1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi,

You can achieve this

serpiva64_0-1676300458735.png

starting from this 

serpiva64_1-1676300494927.png

by applying the steps of the attached file

If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!

 

 

View solution in original post

1 REPLY 1
serpiva64
Solution Sage
Solution Sage

Hi,

You can achieve this

serpiva64_0-1676300458735.png

starting from this 

serpiva64_1-1676300494927.png

by applying the steps of the attached file

If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors