Random Sample from Population already in Domo

I am interested in running experiments with dataset(s) already in domo but want to be able to sample, is there now or are there plans for a way to randomise cases in one or more datasets in domo to build a sample set to run projections on?
Preferably Random/Stratafied random sampling.
Has anyone found a way to mimic the rand function in excel to make sampling possible?
Comments
-
Lauren,
You can use the RAND MySQL function if you use a SQL transform.
The basic version of your sampling query would look like this:
SELECT * FROM dataset
ORDER BY RAND()
LIMIT 10Just increase the LIMIT to whatever size of sample you want and rerun the data transform each time you want new data.
Hopefully that's what you're looking for,
ValiantSpur
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.0 -
Hi,
I also want to use the RAND() Function in MySQL to pick ten random records per partition in the table. I have created partitions thorugh windowed ranking. I am not sure how to pick ten records from each partition (ex: if there are 5 partitions, I need the query to return 50 random rows). Can you help me with this?
Fatima
0
Categories
- 10.6K All Categories
- 1 APAC User Group
- 12 Welcome
- 36 Domo News
- 9.6K Using Domo
- 1.9K Dataflows
- 2.4K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 339 Workbench
- 252 Domo Best Practices
- 11 Domo Certification
- 461 Domo Developer
- 47 Domo Everywhere
- 100 Apps
- 703 New to Domo
- 84 Dojo
- Domopalooza
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 22 お知らせ
- 63 Kowaza
- 296 仲間に相談
- 649 ひらめき共有