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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
MikeUS
Helper I
Helper I

Fill Empty table cells with previous values

Dear community, have the following table. Sales Price date only occur when sales were made in the months. no sales no sales price. 

 

MikeUS_1-1691976718231.png

 

thats the table i'm looking for.

 

in all months without sales (marked in yellow) i need to show the sales price of the last months i sold something. 

 

MikeUS_2-1691976862300.png

 

thanks

Mike

 

2 REPLIES 2
MikeUS
Helper I
Helper I

Hi @jdbuchanan71, thanks for your fast reply. 

 

my original sales data table looks like this

 

MikeUS_0-1691982055283.png

in my sales data table i dont have empty rows to fill those with the transform function. 

 

the first column (Date) is from my Calendar Table = Calendar [Date]

Sales Price is from Sales Data Table - Column Sales Price

(i have filtered one Item #Item 1, otherwise the table would contain mupltiple items and prices for each month)

 

MikeUS_2-1691982610920.png

 

My ultimate goal is to compare YTD vs. previous year sales price

 

MikeUS_3-1691983046923.png

 

 

jdbuchanan71
Super User
Super User

In PowerQuery, select your Sales Price columns and go to Transform > Fill > Down.

jdbuchanan71_0-1691978201318.png

 

After the fill:

jdbuchanan71_1-1691978242762.png

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors