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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JohnLerry
New Member

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 @JohnLerry ,

 

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

View solution in original post

2 REPLIES 2
JohnLerry
New Member

Thanks. It's working now 🙂

mussaenda
Super User
Super User

Hi @JohnLerry ,

 

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors
Top Kudoed Authors