Using a sum of a column in a formula
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Community,
I am trying to use the sum of a column to create a new column in a workflow. Please can you share some ideas.
e.g. for record ID 1, the calclulation for the new column will be 35*(192/0).
this is test data and the real one will have very less 0s.
Solved! Go to Solution.
- Labels:
- Help
- Topic of Interest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Almost as you wrote it:
- SUMMARIZE and get the SUM_SCP value
- APPEND FIELDS to put the SUM_SCP onto your data
- FORMULA to calculate the new column
I don't know about dividing by zero however.
Cheers,
Mark
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @ahsankhalid!
The key here would be to use a Summarize tool to sum your SCP field then use an Append Fields tool to add that totals column back to each record from your input. From there, just use your new totals field in your calculation to create your new field.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Great! Exactly what I was searching for. I didn't realize that I needed to use the Append tool. I would still prefer to have simple functions like count distinct and sum built into the formula tool.
