Skip to content

Instantly share code, notes, and snippets.

@seabbs
Last active January 16, 2018 16:41
Show Gist options
  • Save seabbs/531101829cfdcef3f09d60ba11b607b0 to your computer and use it in GitHub Desktop.
Save seabbs/531101829cfdcef3f09d60ba11b607b0 to your computer and use it in GitHub Desktop.
Tableau R code ci
FLOAT(SCRIPT_REAL("qbinom(0.001, .arg2, .arg1 / .arg2) / .arg2",
WINDOW_SUM(SUM([prob_Accepted]), -[No. of days for rolling average] + 1, 0),
WINDOW_SUM(COUNT([prob_Accepted]), -[No. of days for rolling average] + 1, 0)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment