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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors