- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I replace null value in Pivot?
juzzbitzz
New Member
12-28-2018
01:40 AM
I have a pivot table that has a null value for a few of the records in the "Date" column that is preventing me from sorting the table. How and with what do I replace the null value in the Date column?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

woodcock
Esteemed Legend
12-31-2018
08:28 PM
You have 3 options:
... | eval Date = coalesce(Date, yourAlternateFieldHere, "Your Hard-Coded Default Value Here")
OR
... | fillnull value="Your Hard-Coded Default Value Here" Date
OR
... | filldown Date
I leave it as an exercise for the reader to figure our (or @DalJeanis to explain) the differences.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

DalJeanis
Legend
12-31-2018
10:46 AM
You need to populate the Date field.
Identify, on the records with no Date, what is a good candidate for substitution, then do something like
| eval Date = coalesce(Date,mySubstituteField)
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

renjith_nair
Legend
12-29-2018
03:56 AM
@juzzbitzz,
Try adding |fillnull value="your value for date" Date
in the base search before aggregation/sort
---
What goes around comes around. If it helps, hit it with Karma 🙂
What goes around comes around. If it helps, hit it with Karma 🙂
