Back to Cube

DAX API reference

docs-mintlify/reference/core-data-apis/dax-api/reference.mdx

1.6.4319.7 KB
Original Source
<Info>

If you'd like to propose a function to be supported in the DAX API, please contact the customer success team in Cube Cloud.

</Info>

DAX functions

The DAX API currently implements a subset of functions supported by DAX.

Aggregation functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
AVERAGE
AVERAGEA
AVERAGEXNon-base table as input table
COUNT
COUNTA
COUNTAXNon-base table as input table
COUNTBLANK
COUNTROWSDisregards input table expression and always returns 50000
COUNTXNon-base table as input table
DISTINCTCOUNTBlanks are ignored
DISTINCTCOUNTNOBLANK
MAXBlanks are disregarded instead of being treated as 0 in two-argument variant
MAXA
MAXXNon-base table as input table
MINBlanks are disregarded instead of being treated as 0 in two-argument variant
MINA
MINXNon-base table as input table
SUM
SUMXNon-base table as input table

Date and time functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
CALENDARNon-literal dates
DATENon-literal date parts
DATEVALUENon-ISO date formats
DAY
HOUR
MINUTE
MONTH
NOWTime zone may depend on data warehouse settings
QUARTER
SECOND
TIMENon-literal date parts
TIMEVALUENon-ISO time formats
TODAYTime zone may depend on data warehouse settings
UTCNOWTime zone may depend on data warehouse settings
UTCTODAYTime zone may depend on data warehouse settings
WEEKDAY
WEEKNUMNon-Monday return types
YEAR

Filter functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
ALL
ALLCROSSFILTERED
ALLNOBLANKROW
CALCULATEAdds to the filter context but does not override it
CALCULATETABLE
FILTER
KEEPFILTERS
REMOVEFILTERS

Financial functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
XIRR
<Note>

See the XIRR recipe for more details.

</Note>

INFO functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>

No INFO functions currently supported.

Information functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
CONTAINSSTRINGEXACT
ISAFTER
ISBLANK
ISBOOLEAN
ISCURRENCY
ISDATETIME
ISDECIMAL
ISDOUBLE
ISEMPTYAlways returns FALSE
ISEVEN
ISINT64
ISINTEGER
ISLOGICAL
ISNONTEXT
ISNUMBER
ISNUMERIC
ISODD
ISONORAFTER
ISSTRING
ISTEXT
NONVISUAL
USERCULTUREAlways returns "en-US"

Logical functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
AND
BITAND
BITLSHIFT
BITOR
BITRSHIFT
COALESCE
FALSE
IFCoerces results to common type
NOT
OR
SWITCH
TRUE

Math and trig functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
ABS
ACOS
ACOSH
ACOT
ACOTH
ASIN
ASINH
ATAN
ATANH
CEILINGSignificance other than 1
CONVERT
COS
COSH
COT
COTH
DEGREES
DIVIDE
EVEN
EXP
FLOORSignificance other than 1
INT
LN
LOGBase other than 10
LOG10
MOD
MROUNDMultiple other than 1
ODD
PI
POWER
QUOTIENT
RADIANS
RAND
RANDBETWEEN
ROUNDNum digits other than 0
ROUNDDOWNNum digits other than 0
ROUNDUPNum digits other than 0
SIGN
SIN
SINH
SQRT
SQRTPI
TAN
TANH
TRUNCNum digits other than 0

Other functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
BLANK

Parent and child functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>

No parent and child functions currently supported.

Relationship functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>

No relationship functions currently supported.

Statistical functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
SAMPLEDoesn't evenly distribute rows, taking top N instead (acts as the TOPN function)
SAMPLECARTESIANPOINTSBYCOVERActs as the TOPN function

Table manipulation functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
ADDCOLUMNSAggregate expressions
CURRENTGROUP
<nobr>DISTINCT (column)</nobr>
<nobr>DISTINCT (table)</nobr>
GROUPBY
IGNORE
NATURALINNERJOIN
NATURALLEFTOUTERJOIN
ROLLUPADDISSUBTOTAL
ROLLUPGROUP
ROW
SELECTCOLUMNS
SUBSTITUTEWITHINDEX
SUMMARIZE
SUMMARIZECOLUMNS
Table constructor
TOPNComplex N values are planned as 50000
TREATASNon-literal tables as table expressions
UNION
VALUES

Text functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>
Function<nobr>Unsupported features</nobr>Caveats
COMBINEVALUES
CONCATENATE
EXACT
FINDStart num other than 1 and not found value other than 0
LEFT
LEN
LOWER
MID
REPTReturns empty string when num times is 0
RIGHT
SEARCHStart num other than 1 and not found value other than 0; wildcardsCase-sensitive
SUBSTITUTEInstance number
TRIMTrimming inner whitespace
UNICHAR
UPPER
VALUE

Time intelligence functions

<Info>

Learn more in the relevant section of the DAX documentation.

</Info>

No time intelligence functions currently supported.

Miscellaneous functions

Function<nobr>Unsupported features</nobr>Caveats
GROUPCROSSAPPLYIgnores filter tables, acts as the SUMMARIZECOLUMNS function
SAMPLEAXISWITHLOCALMINMAXActs as the TOPN function