cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

fill null values with next not null value in infotable

effpt3
13-Aquamarine

fill null values with next not null value in infotable

I have a infotable with some columns (timestamp, DT, TEMC, etc;) and values are some null and double.

I need to replace the null with previous value. If previous value is also null, then I need to replace with next not null value. Please help me out.

Find attachment for my infotable

 

ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:effpt3)

Please keep in mind that null is different from undefined

You either just loop through it and check each value and replace it,

Or you could use derive fields to generate a new column

if they are null you can use the following in the expression

columnname ? columnname : "nullreplacementvalue"

 but that can't get you previous value unfortunately.

View solution in original post

2 REPLIES 2
PaiChung
22-Sapphire I
(To:effpt3)

Please keep in mind that null is different from undefined

You either just loop through it and check each value and replace it,

Or you could use derive fields to generate a new column

if they are null you can use the following in the expression

columnname ? columnname : "nullreplacementvalue"

 but that can't get you previous value unfortunately.

abarki
15-Moonstone
(To:effpt3)

Hi effpt3,

 

If PaiChung answered you question, kindly mark the post as accepted solution, this will benefit other community members.

 

Best,

abarki 

Announcements


Top Tags