cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors