Sample with filter
- 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
I would like to take samples of my data with a filter applied on the samples.
E.g.
Take 40% sample where column = A
Take 40% sample where column = B
Take 20% sample where column = C
Is this possible?
- Labels:
- Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I suggest you to use Filter and sample and union them after:
Attached the workflow,
Hope this helps,
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @messi007, thanks for your suggestion.
I do have a question though, doesn't the size of the sample change based on the number of values you get after your filtering? If value A has a lot more records in the data than value B, then taking 40% off of those will be different.
I'm looking to get a sample % (of each condition) of the total output.
Suppose my final output has 1000 records, 400 of those should equal condition A, 400 condition B and 200 condition C. Sorry should've been clearer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have done a Batch Macro in order to batch in each condition
Attached a zipped workflow.
Hope this helps,
Regards,
