Working with Data: All the calculations you need t
  • Introduction
  • What is this book?
  • How to Use this Book
  • Document Notes
  • Authors' Thanks
  • Strings
    • Concatenate
    • Split
    • Length
    • Slice
    • Trim
    • Contains
    • Match
    • Replace
    • Upper/Lower Case
  • Numbers
    • Sum
    • Average
    • Roll Ups
    • Round
    • Floor
    • Power
    • Square Root
    • Absolute
  • Dates
    • Date Difference
    • Age
  • Logical
    • Logical Operators
    • If
    • Case / Switch
    • Is Null/Empty
  • General
    • Count
    • Filter
    • Sort
    • Lookup/Join
    • Variables
    • Convert Type
  • Appendix
    • DateTime Parts
    • Helpful Resources
Powered by GitBook
On this page
  • Excel
  • Tableau
  • Alteryx
  • OrgVue
  • tSQL
  • Python

Was this helpful?

  1. Numbers

Square Root

Square roots are needed in a variety of mathematical equations dealing with variance and statistical modelling. They are also required for some KPIs, e.g. bradford factor - which converts absence to a numerical score which weights absence instances as more important as absence duration.

Excel

=~SQRT!~(‹number›)

=SQRT(A1)

=SQRT(4) // Returns 2

Tableau

~SQRT!~(‹measure›)

SQRT([Engagement])

SQRT(4) // Returns 2

Alteryx

~SQRT!~(‹measure›)

SQRT([Engagement])

SQRT(4) // Returns 2

OrgVue

~Math.sqrt!~(‹measure›) ~Math.sqrt!~(‹number›)

Math.sqrt(node.engagement)

Math.sqrt(4) // Returns 2

tSQL

~SQRT!~(‹number›)

SELECT SQRT(Bradford)
FROM AbsenceData

Python

~math.sqrt!~(‹number›)

import math

math.sqrt(engagement)

math.sqrt(4) # Returns 2

NB.:

  • This requires the math library to be imported.

PreviousPowerNextAbsolute

Last updated 5 years ago

Was this helpful?

The above example assumes a variable has been declared for engagement. For more information, go to .

General > Variables