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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Replacing values with Previous Non-error Value

I have here a sample table that has 2 columns: Timestamp & Demand. Unfortunately, some of the values of demand columns has a value of -3276.8 as shown below due to error in data collecting. However, I want to correct this by replacing this value to the latest preceeding value that is not -3276.8. I want this column to be added in power bi query editor. Need assistance on this. Thanks>

Current View in Power BI Query Editor.

JohnLerry_0-1712216405862.png

 

Expected Result:

JohnLerry_1-1712216583399.png

 

1 ACCEPTED SOLUTION
mussaenda
Super User
Super User

Hi @Anonymous ,

 

Hav you tried replacing the negative with null then fill down the column?

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks. It's working now 🙂

mussaenda
Super User
Super User

Hi @Anonymous ,

 

Hav you tried replacing the negative with null then fill down the column?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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