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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

8 REPLIES 8
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])
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.

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

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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