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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Fill blank cells in a column with previous non blank

Good day

 

I am trying to fill blank cells in a column with previous non blank cell from that column. This is the formula I used

CodeCode

I am not getting the desired result

Bench tableBench table
1 ACCEPTED SOLUTION

@Anonymous see attached, I have included a couple of options, you can tweak it as per your business rules.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

9 REPLIES 9
amitchandak
Super User
Super User

@Anonymous , try like

if(isblank(Table1[bench] )
maxx(filter(table, table[Eqmt Type] = earlier[[Eqmt Type] && table[interval end] < earlier[interval end]   
		),LASTNONBLANKVALUE(Table1[interval end],max(Table1[bench]))),Table1[bench])
Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

I am getting an error

Code2.JPG

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@Anonymous see attached, I have included a couple of options, you can tweak it as per your business rules.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Your mock up just solved the same problem for me! Many thanks! 

I signed in just to express that this one help me to solve my problem, thankyouu so much. 

Anonymous
Not applicable

@parry2k 

Thank you so much!

camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

You can do it using Power Query, the function Fill Down does it. Just replace any spaces for null and apply it.

 

Capture.PNG

 

Result:

Capture.PNG



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

Hi @camargos88 

 

I am using a summarized table from 2 different queries.

 

Thanks

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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