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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors