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

A 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.

Reply
Reetz
Helper II
Helper II

Calculated Table that shows rows with no data

I have a sales table with no rows in the table if the sales don't exist for a particular date. I created a calculated table, but get the same result. 

 

I want the calculated table to insert sales of zero for the missing dates. 
Sales table example.PNGcalculated table.PNGdata model.PNG

Is this even possible?  Eventually, I want to have a rolling 12 month column, but my totals are wrong because the months with zero sales are not being included. 

3 REPLIES 3
FreemanZ
Community Champion
Community Champion

hi @Reetz 

It is possible by leftjoin a date table with your sales table in Power Query Editor.

 

Why do you think missing the zero sales rows affecting you calculation? What calculation do you get?

olgad
Resident Rockstar
Resident Rockstar

I assume the sales table is not gonna be so small in terms of data pump it with some more data so it has the different products on the same dates. Right now whats causing you a problem most probably is one to one relationship.


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Thank you for your response.    My actual sales table has a lot more data with a lot of accounts buying many different products on different dates.  (Although, my company summarizes those sales dates to be all the first of the month).  In actuality, the relationship between the date table and the sales table is a 1 to many.   I tried to scale down the example to uncomplicate it. 

I went back and added more accounts, products and sales with more dates and got the same results. 

What I am looking for is if a specific date has no sales for that account/product, I want to show a row for that missing date/account/product with sales of zero.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.