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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 58 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 395 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive