Split Amount Evenly Across Rows with 2 Decimals
- 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
Hello,
I want to split an amount of an invoice distributed evenly using 2 decimal points. This is the table I currently have
Field1 | Field4 |
958A | 1187.39 |
958A | 1187.39 |
I want to get to the Split Amount ensuring I have 2 decimals:
Field1 | Field4 | Split Amount |
958A | 1187.39 | 593.70 |
958A | 1187.39 | 593.69 |
Field1 could also have 3 records of the same number and need to split it evenly.
I used the formula tool [Field4]/2 Data Type: Fixed Decimal Precision 10, scale 2 and gave me the 593.70 on both records, but need the second record to be 593.69. I know the Multi-row formula would work, but I haven't been able to get it to work yet.
thanks for the help!
Solved! Go to Solution.
- Labels:
- Custom Tools
- Output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you want a "dynamic" count, I would do a Summarize tool to group on Field1 and Count Field4 to get the amount the values should be divided by. Then you can Join the count value back to the original data on Field1 and then use a Formula to divide your amounts by the Count.
For the rounding piece, you could look at the multi-row formula in some way to round up one but not the other - that'll depend on what logic you want to introduce to decide which one should be up versus down
- 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
@mzlee one way of doing this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi , how would this formula be adjusted if for example I had more invoices with the same number and need to split the amount by 3 or 4 instead of 2?
- 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
@binuacs this worked! thank you so much!
