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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Eric-De
Frequent Visitor

used existing value(s) in a column to replace null value

Hello

I need to replace value null by previous value 

EricDe_0-1714410426864.png

I have try something like this 

 

= Table.AddColumn(#"Added Index", "Custom", each Table.TransformColumns(#"Added Index", "Custom.2", each if Text.Contains([Custom.1], "" )
then
Table.SelectRows(Source, each [custom.1] <> "" and [index] = [index]-1)
else
[Custom.1]))

 

but my syntax is definitly wrong 

 

After check on the forum I have find some sample but apparently not the same usage than my needed.

 

If some people can help me to this ?

Best regards

1 ACCEPTED SOLUTION
ronrsnfld
Super User
Super User

From your data sample, it looks like you could simply use the Table.FillDown function.

 

 

Table.FillDown(#"Previous Step",{"Custom.1"})

 

 

View solution in original post

2 REPLIES 2
ronrsnfld
Super User
Super User

From your data sample, it looks like you could simply use the Table.FillDown function.

 

 

Table.FillDown(#"Previous Step",{"Custom.1"})

 

 

Bonjour / Hello

 

Thank to this ronrsnfld. I have arleady used this command but I think that take only the first value who exist, but not.

That solved my problem.

Thank to this 😀

 

Best regards

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors