|
1 | | -# DAX API function reference |
| 1 | +# DAX API reference |
2 | 2 |
|
3 | | -TODO |
| 3 | +The [DAX API][ref-dax-api] supports the following [functions](#dax-functions). |
| 4 | + |
| 5 | +<InfoBox> |
| 6 | + |
| 7 | +If you'd like to propose a function to be supported in the DAX API, |
| 8 | +please contact the customer success team in Cube Cloud. |
| 9 | + |
| 10 | +</InfoBox> |
| 11 | + |
| 12 | +## DAX functions |
| 13 | + |
| 14 | +The DAX API currently implements a subset of functions [supported by DAX][link-dax-func-reference]. |
| 15 | + |
| 16 | +### Aggregation functions |
| 17 | + |
| 18 | +<InfoBox> |
| 19 | + |
| 20 | +Learn more in the |
| 21 | +[relevant section](https://learn.microsoft.com/en-us/dax/aggregation-functions-dax) |
| 22 | +of the DAX documentation. |
| 23 | + |
| 24 | +</InfoBox> |
| 25 | + |
| 26 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 27 | +| --- | --- | --- | |
| 28 | +| [`AVERAGE`](https://learn.microsoft.com/en-us/dax/average-function-dax) | — | — | |
| 29 | +| [`COUNT`](https://learn.microsoft.com/en-us/dax/count-function-dax) | — | Counts all rows instead of only non-blank ones | |
| 30 | +| [`COUNTROWS`](https://learn.microsoft.com/en-us/dax/countrows-function-dax) | — | Disregards input table expression and always returns 1 | |
| 31 | +| [`MAX`](https://learn.microsoft.com/en-us/dax/max-function-dax) | 2 arguments | Blanks are disregarded instead of being treated as 0 | |
| 32 | +| [`MIN`](https://learn.microsoft.com/en-us/dax/min-function-dax) | 2 arguments | Blanks are disregarded instead of being treated as 0 | |
| 33 | +| [`SUM`](https://learn.microsoft.com/en-us/dax/sum-function-dax) | — | — | |
| 34 | + |
| 35 | +### Date and time functions |
| 36 | + |
| 37 | +<InfoBox> |
| 38 | + |
| 39 | +Learn more in the |
| 40 | +[relevant section](https://learn.microsoft.com/en-us/dax/date-and-time-functions-dax) |
| 41 | +of the DAX documentation. |
| 42 | + |
| 43 | +</InfoBox> |
| 44 | + |
| 45 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 46 | +| --- | --- | --- | |
| 47 | +| [`DATE`](https://learn.microsoft.com/en-us/dax/date-function-dax) | Non-literal date parts | — | |
| 48 | +| [`TIME`](https://learn.microsoft.com/en-us/dax/time-function-dax) | Non-literal date parts. Execution outside `DATE(...) + TIME(...)` expression | — | |
| 49 | + |
| 50 | +### Filter functions |
| 51 | + |
| 52 | +<InfoBox> |
| 53 | + |
| 54 | +Learn more in the |
| 55 | +[relevant section](https://learn.microsoft.com/en-us/dax/filter-functions-dax) |
| 56 | +of the DAX documentation. |
| 57 | + |
| 58 | +</InfoBox> |
| 59 | + |
| 60 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 61 | +| --- | --- | --- | |
| 62 | +| [`ALL`](https://learn.microsoft.com/en-us/dax/all-function-dax) | 2+ arguments | Doesn't clear filter context, silently ignored | |
| 63 | +| [`CALCULATE`](https://learn.microsoft.com/en-us/dax/calculate-function-dax) | Creating a nested filter context | — | |
| 64 | +| [`CALCULATETABLE`](https://learn.microsoft.com/en-us/dax/calculatetable-function-dax) | Creating a nested filter context | — | |
| 65 | +| [`FILTER`](https://learn.microsoft.com/en-us/dax/filter-function-dax) | — | — | |
| 66 | +| [`KEEPFILTERS`](https://learn.microsoft.com/en-us/dax/keepfilters-function-dax) | — | Doesn't modify behavior, silently ignored | |
| 67 | + |
| 68 | +### Financial functions |
| 69 | + |
| 70 | +<InfoBox> |
| 71 | + |
| 72 | +Learn more in the |
| 73 | +[relevant section](https://learn.microsoft.com/en-us/dax/financial-functions-dax) |
| 74 | +of the DAX documentation. |
| 75 | + |
| 76 | +</InfoBox> |
| 77 | + |
| 78 | +No financial functions currently supported. |
| 79 | + |
| 80 | +### Information functions |
| 81 | + |
| 82 | +<InfoBox> |
| 83 | + |
| 84 | +Learn more in the |
| 85 | +[relevant section](https://learn.microsoft.com/en-us/dax/information-functions-dax) |
| 86 | +of the DAX documentation. |
| 87 | + |
| 88 | +</InfoBox> |
| 89 | + |
| 90 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 91 | +| --- | --- | --- | |
| 92 | +| [`ISBLANK`](https://learn.microsoft.com/en-us/dax/isblank-function-dax) | — | — | |
| 93 | +| [`ISONORAFTER`](https://learn.microsoft.com/en-us/dax/isonorafter-function-dax) | — | — | |
| 94 | + |
| 95 | +### Logical functions |
| 96 | + |
| 97 | +<InfoBox> |
| 98 | + |
| 99 | +Learn more in the |
| 100 | +[relevant section](https://learn.microsoft.com/en-us/dax/logical-functions-dax) |
| 101 | +of the DAX documentation. |
| 102 | + |
| 103 | +</InfoBox> |
| 104 | + |
| 105 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 106 | +| --- | --- | --- | |
| 107 | +| [`AND`](https://learn.microsoft.com/en-us/dax/and-function-dax) | — | — | |
| 108 | +| [`NOT`](https://learn.microsoft.com/en-us/dax/not-function-dax) | — | — | |
| 109 | +| [`OR`](https://learn.microsoft.com/en-us/dax/or-function-dax) | — | — | |
| 110 | + |
| 111 | +### Math and trig functions |
| 112 | + |
| 113 | +<InfoBox> |
| 114 | + |
| 115 | +Learn more in the |
| 116 | +[relevant section](https://learn.microsoft.com/en-us/dax/math-and-trig-functions-dax) |
| 117 | +of the DAX documentation. |
| 118 | + |
| 119 | +</InfoBox> |
| 120 | + |
| 121 | +No math and trig functions currently supported. |
| 122 | + |
| 123 | +### Other functions |
| 124 | + |
| 125 | +<InfoBox> |
| 126 | + |
| 127 | +Learn more in the |
| 128 | +[relevant section](https://learn.microsoft.com/en-us/dax/other-functions-dax) |
| 129 | +of the DAX documentation. |
| 130 | + |
| 131 | +</InfoBox> |
| 132 | + |
| 133 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 134 | +| --- | --- | --- | |
| 135 | +| [`BLANK`](https://learn.microsoft.com/en-us/dax/blank-function-dax) | — | — | |
| 136 | + |
| 137 | +### Parent and child functions |
| 138 | + |
| 139 | +<InfoBox> |
| 140 | + |
| 141 | +Learn more in the |
| 142 | +[relevant section](https://learn.microsoft.com/en-us/dax/parent-and-child-functions-dax) |
| 143 | +of the DAX documentation. |
| 144 | + |
| 145 | +</InfoBox> |
| 146 | + |
| 147 | +No parent and child functions currently supported. |
| 148 | + |
| 149 | +### Relationship functions |
| 150 | + |
| 151 | +<InfoBox> |
| 152 | + |
| 153 | +Learn more in the |
| 154 | +[relevant section](https://learn.microsoft.com/en-us/dax/relationship-functions-dax) |
| 155 | +of the DAX documentation. |
| 156 | + |
| 157 | +</InfoBox> |
| 158 | + |
| 159 | +No relationship functions currently supported. |
| 160 | + |
| 161 | +### Statistical functions |
| 162 | + |
| 163 | +<InfoBox> |
| 164 | + |
| 165 | +Learn more in the |
| 166 | +[relevant section](https://learn.microsoft.com/en-us/dax/statistical-functions-dax) |
| 167 | +of the DAX documentation. |
| 168 | + |
| 169 | +</InfoBox> |
| 170 | + |
| 171 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 172 | +| --- | --- | --- | |
| 173 | +| [`SAMPLE`](https://learn.microsoft.com/en-us/dax/sample-function-dax) | — | Doesn't evenly distribute rows, taking top N instead (acts as the `TOPN` function) | |
| 174 | + |
| 175 | +### Table manipulation functions |
| 176 | + |
| 177 | +<InfoBox> |
| 178 | + |
| 179 | +Learn more in the |
| 180 | +[relevant section](https://learn.microsoft.com/en-us/dax/table-manipulation-functions-dax) |
| 181 | +of the DAX documentation. |
| 182 | + |
| 183 | +</InfoBox> |
| 184 | + |
| 185 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 186 | +| --- | --- | --- | |
| 187 | +| [`ADDCOLUMNS`](https://learn.microsoft.com/en-us/dax/addcolumns-function-dax) | Aggregate expressions | — | |
| 188 | +| <nobr>[`DISTINCT`](https://learn.microsoft.com/en-us/dax/distinct-function-dax) (column)</nobr> | — | — | |
| 189 | +| <nobr>[`DISTINCT`](https://learn.microsoft.com/en-us/dax/distinct-table-function-dax) (table)</nobr> | Filter context for table expressions | — | |
| 190 | +| [`IGNORE`](https://learn.microsoft.com/en-us/dax/ignore-function-dax) | 2+ arguments | Doesn't modify filter context, silently ignored | |
| 191 | +| [`NATURALLEFTOUTERJOIN`](https://learn.microsoft.com/en-us/dax/naturalleftouterjoin-function-dax) | — | — | |
| 192 | +| [`ROLLUPADDISSUBTOTAL`](https://learn.microsoft.com/en-us/dax/rollupaddissubtotal-function-dax) | `grandtotalFilter`, `groupLevelFilter` | — | |
| 193 | +| [`ROLLUPGROUP`](https://learn.microsoft.com/en-us/dax/rollupgroup-function-dax) | — | — | |
| 194 | +| [`ROW`](https://learn.microsoft.com/en-us/dax/row-function-dax) | — | — | |
| 195 | +| [`SELECTCOLUMNS`](https://learn.microsoft.com/en-us/dax/selectcolumns-function-dax) | Optional aliases (currently mandatory) | — | |
| 196 | +| [`SUBSTITUTEWITHINDEX`](https://learn.microsoft.com/en-us/dax/substitutewithindex-function-dax) | — | — | |
| 197 | +| [`SUMMARIZE`](https://learn.microsoft.com/en-us/dax/summarize-function-dax) | Named expressions (aggregations/measures) | — | |
| 198 | +| [`SUMMARIZECOLUMNS`](https://learn.microsoft.com/en-us/dax/summarizecolumns-function-dax) | — | — | |
| 199 | +| [`TOPN`](https://learn.microsoft.com/en-us/dax/topn-function-dax) | Non-literal N value | — | |
| 200 | +| [`TREATAS`](https://learn.microsoft.com/en-us/dax/treatas-function-dax) | Non-literal tables as table expressions | — | |
| 201 | +| [`VALUES`](https://learn.microsoft.com/en-us/dax/values-function-dax) | — | — | |
| 202 | + |
| 203 | +### Text functions |
| 204 | + |
| 205 | +<InfoBox> |
| 206 | + |
| 207 | +Learn more in the |
| 208 | +[relevant section](https://learn.microsoft.com/en-us/dax/text-functions-dax) |
| 209 | +of the DAX documentation. |
| 210 | + |
| 211 | +</InfoBox> |
| 212 | + |
| 213 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 214 | +| --- | --- | --- | |
| 215 | +| [`SEARCH`](https://learn.microsoft.com/en-us/dax/search-function-dax) | Execution outside filter context functions | — | |
| 216 | + |
| 217 | +### Time intelligence functions |
| 218 | + |
| 219 | +<InfoBox> |
| 220 | + |
| 221 | +Learn more in the |
| 222 | +[relevant section](https://learn.microsoft.com/en-us/dax/time-intelligence-functions-dax) |
| 223 | +of the DAX documentation. |
| 224 | + |
| 225 | +</InfoBox> |
| 226 | + |
| 227 | +No time intelligence functions currently supported. |
| 228 | + |
| 229 | +### Miscellaneous functions |
| 230 | + |
| 231 | +| Function | <nobr>Unsupported features</nobr> | Caveats | |
| 232 | +| --- | --- | --- | |
| 233 | +| [`SAMPLEAXISWITHLOCALMINMAX`](https://learn.microsoft.com/en-us/dax/sampleaxiswithlocalminmax-function-dax) | — | Silently ignored, returning input table expression | |
| 234 | + |
| 235 | + |
| 236 | +[ref-dax-api]: /product/apis-integrations/dax-api |
| 237 | +[link-dax-func-reference]: https://learn.microsoft.com/en-us/dax/dax-function-reference |
0 commit comments