SOLVED
Getting Null values from Multi Row Formula tool
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
HBarge
8 - Asteroid
‎09-02-2019
10:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi All,
I am getting null values when I use the Multi Row formula tool.
Essentially, I want to a cumulative of the second column and the previous row of the 3rd column; Grouped by Trip Number. I am getting null values i.e. no output. Seems pretty simple but I am stuck.
Can anybody please help?
Thanks,
Harshad
Solved! Go to Solution.
Labels:
- Labels:
- Common Use Cases
- Preparation
- Workflow
3 REPLIES 3
lmorrell
11 - Bolide
‎09-02-2019
10:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Harshad,
Solution is attached.
When adding a null value to an integer, the result will become null. To avoid this, I have set all null values to equal 0 prior to generating the cumulative columns. The resulting formula is:
IIF(isnull([LEG_TM_SCHED]), 0,[LEG_TM_SCHED])
+
IIF(isnull([Row-1:CML_LEG_TM_SCHED]), 0, [Row-1:CML_LEG_TM_SCHED])
Hope this helps!
Leigh
‎09-02-2019
10:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Leigh,
Thanks.
This works!
derekbelyea
12 - Quasar
‎09-02-2019
10:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
