Has anyone successfully calculated a Pearson Correlation Coefficient in Beastmode? My idea is to create a scatter plot that graphically displays the relationship between two fields in a dataset, and display the Correlation Coefficient for those two datasets as the Summary Number.
For example, if the card is filtered for a date range of March 1 - March 31, the key fields in the underlying dataset might look like the following table, which would result in a Correlation Coefficient of 0.5669 (this is the value that I would want to display as the Summary Number for the card). Is this possible?
Thanks!
Revenue | Duration |
$603 | 185 |
$262 | 123 |
$906 | 287 |
$429 | 179 |
$872 | 266 |
$302 | 160 |
$185 | 126 |
$596 | 293 |
$481 | 234 |
$173 | 104 |
$628 | 11 |
$296 | 194 |
$272 | 46 |