Match Amount and extract random data
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
vishwa1979
7 - Meteor
Monday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Dear Team,
I have raw data of policy no and amount.
I want random policy no which should match the total amount which should be around 4535080.
+10 or -10. Not necessary to be exact match.
Thanks in advance
Labels:
- Labels:
- Help
2 REPLIES 2
OTrieger
13 - Pulsar
Monday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@vishwa1979
I think that you should be able to do that with Tile tool
ntakeda
12 - Quasar
Monday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have implemented the following approach:
Use a random function to shuffle the data.
Sum the values from the top until the total reaches the target value (4,535,080 ± 10).
If the total does not fall within the target range, repeat steps 1 and 2 (using a macro).
Due to the logic, the selection is not completely random—smaller values tend to appear more frequently.
However, the calculation is approximately random.
 
