To Calculate Percentile in Beast Mode
Comments
-
Hi,
afaik the latest stable version of MySQL (5.7) that Beast Mode uses (I think that's it, right, moderators?) doesn't actually have that function (fingers crossed for version 8.0, which also has window functions, which will be absolutely mindblowing.
What you can do however is add a rank into your data (for each column individually that you want to have a percentile for) using a MySQL dataflow (dont forget to ORDER BY `desired column` [ASC or DESC]) or with ETL.
This would, for example, give you a rank, of, say, 1 for the largest datapoint (odering descending). You nee the rank, since you want to know what percentage of your data is above or below that. If your data has 1000 rows, that would mean that this value is in the 99th percentile - all you need to do is to add a beast mode (you could also do this in MySQL if you want) and you're golden.
I am not entirely sure what you mean by "need a tabular format" but I assume as soon as you have your percentile value, you can just put it into a table graph next to, say, name of what you are ranking and its values. If you are aggregating values here, you will have to perform your rank on the aggregation, though.
NOTE: I haven't put an example calculation in here because "percentile" can mean a bunch of things - there are slight differences to take into account, but you will need a rank for your values no matter what.
1 -
Hi @jhl,
Following up with your example of 1000 rows in the dataset, how do you know that the largest value is in the 99th percentile with only the order function? Is there a way to convert those 1000 values into the percentile? Can you share a sample beast mode please?
Thanks,
Sailee
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive