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
Categories
- 10.5K All Categories
- 8 Connect
- 918 Connectors
- 250 Workbench
- 470 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 477 Datasets
- 193 Visualize
- 252 Beast Mode
- 2.1K Charting
- 11 Variables
- 17 Automate
- 354 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 247 Distribute
- 63 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 174 Product Ideas
- 1.2K Ideas Exchange
- 12 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive