...
The table below presents a list of Spark SQL functions with information on whether they can be used for creating a new column, measure, or table.
Spark SQL functions | New Column New Measure | New Table | ||
---|---|---|---|---|
Blank |
|
|
| |
Len |
|
|
| |
Lower |
|
|
| |
Mid |
|
|
| |
Trim |
|
|
| |
Upper |
|
|
| |
Fixed |
|
|
| |
Column | ||||
And |
|
|
| |
IF |
|
|
| |
Not |
|
| ||
OR |
|
|
| |
Switch |
|
|
| |
True and False |
|
| ||
Blank | IFERROR |
|
|
|
ABS | Fixed |
|
| |
CEILING |
|
|
| |
EXP |
|
|
| |
INT |
|
|
| |
ISO.CEILING |
|
|
| |
LOG10 |
|
| ||
MOD |
|
|
| |
MROUND |
|
|
| |
PI |
|
|
| |
POWER |
|
|
| |
QUOTIENT |
|
|
| |
RAND |
|
| ||
Round |
|
| ||
ROUNDDOWN |
|
|
| |
ROUNDUP |
|
| ||
SIGN |
|
| ||
SQRT |
|
| ||
SUMX |
|
|
| |
DEGREES |
|
|
| |
DIVIDE |
|
| ||
EVEN |
|
| ||
Fact |
|
| ||
FLOOR |
|
|
| |
GCD |
|
|
| |
LCM |
|
|
| |
LN |
|
|
| |
LOG |
|
| ||
ODD |
|
| ||
RADIANS |
|
|
| |
RANDBETWEEN |
|
|
| |
TRUNC |
|
|
| |
ISBLANK |
|
|
| |
ISBLANK |
|
|
| |
USERNAME |
|
| ||
CONTAINS |
|
|
| |
ISERROR |
|
|
| |
ISEVEN |
|
|
| |
ISLOGICAL |
|
| ||
ISNONTEXT |
|
|
| |
ISNUMBER |
|
|
| |
ISODD |
|
|
| |
ISTEXT |
|
| ||
TODAY |
|
| ||
NOW |
|
| ||
DATEVALUE |
|
|
| |
DATESBETWEEN |
|
|
| |
DATESINPERIOD |
|
|
| |
DATESMTD |
|
|
| |
DATESQTD |
|
| ||
DATESYTD |
|
|
| |
ENDOFMONTH |
|
|
| |
ENDOFQUARTER |
|
|
| |
ENDOFYEAR |
|
|
| |
FIRSTDATE |
|
|
| |
FIRSTNONBLANK |
|
| ||
LASTDATE |
|
| ||
LASTNONBLANK |
|
|
| |
NEXTDAY |
|
| ||
PREVIOUSDAY |
|
| ||
STARTOFMONTH |
|
| ||
STARTOFQUARTER |
|
|
| |
STARTOFYEAR |
|
|
| |
TOTALMTD |
|
| ||
TOTALQTD |
|
| ||
TOTALYTD |
|
| ||
ALL |
|
|
| |
ALLEXCEPT |
|
|
| |
ALLNOBLANKROW |
|
|
| |
ALLSELECTED |
|
|
| |
CALCULATE |
|
| ||
CALCULATETABLE |
|
| ||
DISTINCT |
|
|
| |
FILTER |
|
|
| |
FILTERS |
|
|
| |
HASONEFILTER |
|
|
| |
HASONEVALUE |
|
|
| |
ISCROSSFILTERED |
|
| ||
ISFILTERED |
|
|
| |
RELATEDTABLE |
|
| ||
SELECTEDVALUE |
|
| ||
VALUES |
|
| ||
COUNT |
|
|
| |
COUNTA |
|
|
| |
COUNTAX |
|
|
| |
COUNTROWS |
|
| ||
COUNTX |
|
| ||
DISTINCTCOUNT | COUNTX |
| ||
DATE |
|
| ||
DISTINCTCOUNTDATEDIFF |
|
| ||
DAY |
| CALENDAR | ||
MONTH |
|
| ||
CALENDARAUTOTIME |
|
| ||
YEAR |
|
| ||
DATELen |
|
| ||
Lower |
| DATEDIFF |
| |
Mid | DAY |
| ||
Trim |
| MONTH | ||
Upper |
|
|
Panel |
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
Note The functions CALENDAR and CALENDARAUTO support creating a new table. |