Skip to content

Commit 73f50ac

Browse files
MazterQyoumarianore-muttdata
authored andcommitted
docs: Update DAX API function reference (cube-js#9344)
Signed-off-by: Alex Qyoun-ae <[email protected]>
1 parent 1e3aa17 commit 73f50ac

File tree

1 file changed

+72
-1
lines changed

1 file changed

+72
-1
lines changed

β€Ždocs/pages/product/apis-integrations/dax-api/reference.mdxβ€Ž

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,24 @@ of the DAX documentation.
2626
| Function | <nobr>Unsupported features</nobr> | Caveats |
2727
| --- | --- | --- |
2828
| [`AVERAGE`](https://learn.microsoft.com/en-us/dax/average-function-dax) | β€” | β€” |
29+
| [`AVERAGEA`](https://learn.microsoft.com/en-us/dax/averagea-function-dax) | Non-numeric values | β€” |
30+
| [`AVERAGEX`](https://learn.microsoft.com/en-us/dax/averagex-function-dax) | Non-base table as input table | β€” |
2931
| [`COUNT`](https://learn.microsoft.com/en-us/dax/count-function-dax) | β€” | β€” |
3032
| [`COUNTA`](https://learn.microsoft.com/en-us/dax/counta-function-dax) | β€” | β€” |
33+
| [`COUNTAX`](https://learn.microsoft.com/en-us/dax/countax-function-dax) | Non-base table as input table | β€” |
34+
| [`COUNTBLANK`](https://learn.microsoft.com/en-us/dax/countblank-function-dax) | β€” | β€” |
3135
| [`COUNTROWS`](https://learn.microsoft.com/en-us/dax/countrows-function-dax) | β€” | Disregards input table expression and always returns 1 |
36+
| [`COUNTX`](https://learn.microsoft.com/en-us/dax/countx-function-dax) | Non-base table as input table | β€” |
3237
| [`DISTINCTCOUNT`](https://learn.microsoft.com/en-us/dax/distinctcount-function-dax) | β€” | Blanks are ignored |
38+
| [`DISTINCTCOUNTNOBLANK`](https://learn.microsoft.com/en-us/dax/distinctcountnoblank-function-dax) | β€” | β€” |
3339
| [`MAX`](https://learn.microsoft.com/en-us/dax/max-function-dax) | 2 arguments | Blanks are disregarded instead of being treated as 0 |
40+
| [`MAXA`](https://learn.microsoft.com/en-us/dax/maxa-function-dax) | β€” | β€” |
41+
| [`MAXX`](https://learn.microsoft.com/en-us/dax/maxx-function-dax) | Non-base table as input table | β€” |
3442
| [`MIN`](https://learn.microsoft.com/en-us/dax/min-function-dax) | 2 arguments | Blanks are disregarded instead of being treated as 0 |
43+
| [`MINA`](https://learn.microsoft.com/en-us/dax/mina-function-dax) | β€” | β€” |
44+
| [`MINX`](https://learn.microsoft.com/en-us/dax/minx-function-dax) | Non-base table as input table | β€” |
3545
| [`SUM`](https://learn.microsoft.com/en-us/dax/sum-function-dax) | β€” | β€” |
46+
| [`SUMX`](https://learn.microsoft.com/en-us/dax/sumx-function-dax) | Non-base table as input table | β€” |
3647

3748
### Date and time functions
3849

@@ -47,7 +58,19 @@ of the DAX documentation.
4758
| Function | <nobr>Unsupported features</nobr> | Caveats |
4859
| --- | --- | --- |
4960
| [`DATE`](https://learn.microsoft.com/en-us/dax/date-function-dax) | Non-literal date parts | β€” |
61+
| [`DAY`](https://learn.microsoft.com/en-us/dax/day-function-dax) | Text date input | β€” |
62+
| [`HOUR`](https://learn.microsoft.com/en-us/dax/hour-function-dax) | Text date input | β€” |
63+
| [`MINUTE`](https://learn.microsoft.com/en-us/dax/minute-function-dax) | Text date input | β€” |
64+
| [`MONTH`](https://learn.microsoft.com/en-us/dax/month-function-dax) | Text date input | β€” |
65+
| [`NOW`](https://learn.microsoft.com/en-us/dax/now-function-dax) | β€” | Returns datetime in UTC time zone |
66+
| [`QUARTER`](https://learn.microsoft.com/en-us/dax/quarter-function-dax) | Text date input | β€” |
67+
| [`SECOND`](https://learn.microsoft.com/en-us/dax/second-function-dax) | Text date input | β€” |
5068
| [`TIME`](https://learn.microsoft.com/en-us/dax/time-function-dax) | Non-literal date parts. Execution outside `DATE(...) + TIME(...)` expression | β€” |
69+
| [`TODAY`](https://learn.microsoft.com/en-us/dax/today-function-dax) | β€” | Returns date in UTC time zone. Time is at 12:00:00 AM; contrary to documentation, Analysis Services returns that time |
70+
| [`UTCNOW`](https://learn.microsoft.com/en-us/dax/utcnow-function-dax) | β€” | β€” |
71+
| [`UTCTODAY`](https://learn.microsoft.com/en-us/dax/utctoday-function-dax) | β€” | Time is at 12:00:00 AM; contrary to documentation, Analysis Services returns that time |
72+
| [`WEEKDAY`](https://learn.microsoft.com/en-us/dax/weekday-function-dax) | Text date input | β€” |
73+
| [`YEAR`](https://learn.microsoft.com/en-us/dax/year-function-dax) | Text date input | β€” |
5174

5275
### Filter functions
5376

@@ -91,9 +114,13 @@ of the DAX documentation.
91114

92115
| Function | <nobr>Unsupported features</nobr> | Caveats |
93116
| --- | --- | --- |
117+
| [`ISAFTER`](https://learn.microsoft.com/en-us/dax/isafter-function-dax) | β€” | β€” |
94118
| [`ISBLANK`](https://learn.microsoft.com/en-us/dax/isblank-function-dax) | β€” | Blanks are treated as equivalent to nulls and vice versa |
119+
| [`ISEVEN`](https://learn.microsoft.com/en-us/dax/iseven-function-dax) | β€” | β€” |
120+
| [`ISODD`](https://learn.microsoft.com/en-us/dax/isodd-function-dax) | β€” | β€” |
95121
| [`ISONORAFTER`](https://learn.microsoft.com/en-us/dax/isonorafter-function-dax) | β€” | β€” |
96122
| [`NONVISUAL`](https://learn.microsoft.com/en-us/dax/nonvisual-function-dax) | β€” | Doesn't modify behavior, silently ignored |
123+
| [`USERCULTURE`](https://learn.microsoft.com/en-us/dax/userculture-function-dax) | β€” | Always returns "en-US" |
97124

98125
### Logical functions
99126

@@ -108,8 +135,12 @@ of the DAX documentation.
108135
| Function | <nobr>Unsupported features</nobr> | Caveats |
109136
| --- | --- | --- |
110137
| [`AND`](https://learn.microsoft.com/en-us/dax/and-function-dax) | β€” | β€” |
138+
| [`FALSE`](https://learn.microsoft.com/en-us/dax/false-function-dax) | β€” | β€” |
139+
| [`IF`](https://learn.microsoft.com/en-us/dax/if-function-dax) | Variant data types | β€” |
111140
| [`NOT`](https://learn.microsoft.com/en-us/dax/not-function-dax) | β€” | β€” |
112141
| [`OR`](https://learn.microsoft.com/en-us/dax/or-function-dax) | β€” | β€” |
142+
| [`SWITCH`](https://learn.microsoft.com/en-us/dax/switch-function-dax) | β€” | β€” |
143+
| [`TRUE`](https://learn.microsoft.com/en-us/dax/true-function-dax) | β€” | β€” |
113144

114145
### Math and trig functions
115146

@@ -121,7 +152,34 @@ of the DAX documentation.
121152

122153
</InfoBox>
123154

124-
No math and trig functions currently supported.
155+
| Function | <nobr>Unsupported features</nobr> | Caveats |
156+
| --- | --- | --- |
157+
| [`ABS`](https://learn.microsoft.com/en-us/dax/abs-function-dax) | β€” | β€” |
158+
| [`ACOS`](https://learn.microsoft.com/en-us/dax/acos-function-dax) | β€” | β€” |
159+
| [`ASIN`](https://learn.microsoft.com/en-us/dax/asin-function-dax) | β€” | β€” |
160+
| [`ATAN`](https://learn.microsoft.com/en-us/dax/atan-function-dax) | β€” | β€” |
161+
| [`CEILING`](https://learn.microsoft.com/en-us/dax/ceiling-function-dax) | Significance other than 1 | β€” |
162+
| [`COS`](https://learn.microsoft.com/en-us/dax/cos-function-dax) | β€” | β€” |
163+
| [`EXP`](https://learn.microsoft.com/en-us/dax/exp-function-dax) | β€” | β€” |
164+
| [`FLOOR`](https://learn.microsoft.com/en-us/dax/floor-function-dax) | Significance other than 1 | β€” |
165+
| [`INT`](https://learn.microsoft.com/en-us/dax/int-function-dax) | β€” | β€” |
166+
| [`LN`](https://learn.microsoft.com/en-us/dax/ln-function-dax) | β€” | β€” |
167+
| [`LOG`](https://learn.microsoft.com/en-us/dax/log-function-dax) | Base other than 10 | β€” |
168+
| [`LOG10`](https://learn.microsoft.com/en-us/dax/log10-function-dax) | β€” | β€” |
169+
| [`MOD`](https://learn.microsoft.com/en-us/dax/mod-function-dax) | β€” | β€” |
170+
| [`MROUND`](https://learn.microsoft.com/en-us/dax/mround-function-dax) | Multiple other than 1 | β€” |
171+
| [`PI`](https://learn.microsoft.com/en-us/dax/pi-function-dax) | β€” | β€” |
172+
| [`POWER`](https://learn.microsoft.com/en-us/dax/power-function-dax) | β€” | β€” |
173+
| [`QUOTIENT`](https://learn.microsoft.com/en-us/dax/quotient-function-dax) | β€” | β€” |
174+
| [`RAND`](https://learn.microsoft.com/en-us/dax/rand-function-dax) | β€” | β€” |
175+
| [`ROUND`](https://learn.microsoft.com/en-us/dax/round-function-dax) | Num digits other than 0 | β€” |
176+
| [`ROUNDDOWN`](https://learn.microsoft.com/en-us/dax/rounddown-function-dax) | Num digits other than 0 | β€” |
177+
| [`ROUNDUP`](https://learn.microsoft.com/en-us/dax/roundup-function-dax) | Num digits other than 0 | β€” |
178+
| [`SIN`](https://learn.microsoft.com/en-us/dax/sin-function-dax) | β€” | β€” |
179+
| [`SQRT`](https://learn.microsoft.com/en-us/dax/sqrt-function-dax) | β€” | β€” |
180+
| [`SQRTPI`](https://learn.microsoft.com/en-us/dax/sqrtpi-function-dax) | β€” | β€” |
181+
| [`TAN`](https://learn.microsoft.com/en-us/dax/tan-function-dax) | β€” | β€” |
182+
| [`TRUNC`](https://learn.microsoft.com/en-us/dax/trunc-function-dax) | Num digits other than 0 | β€” |
125183

126184
### Other functions
127185

@@ -215,7 +273,20 @@ of the DAX documentation.
215273

216274
| Function | <nobr>Unsupported features</nobr> | Caveats |
217275
| --- | --- | --- |
276+
| [`CONCATENATE`](https://learn.microsoft.com/en-us/dax/concatenate-function-dax) | β€” | β€” |
277+
| [`EXACT`](https://learn.microsoft.com/en-us/dax/exact-function-dax) | β€” | β€” |
278+
| [`FIND`](https://learn.microsoft.com/en-us/dax/find-function-dax) | Start num other than 1 and not found value other than 0 | β€” |
279+
| [`LEFT`](https://learn.microsoft.com/en-us/dax/left-function-dax) | β€” | β€” |
280+
| [`LEN`](https://learn.microsoft.com/en-us/dax/len-function-dax) | β€” | β€” |
281+
| [`LOWER`](https://learn.microsoft.com/en-us/dax/lower-function-dax) | β€” | β€” |
282+
| [`MID`](https://learn.microsoft.com/en-us/dax/mid-function-dax) | β€” | β€” |
283+
| [`REPT`](https://learn.microsoft.com/en-us/dax/rept-function-dax) | β€” | Returns empty string when num times is 0 |
284+
| [`RIGHT`](https://learn.microsoft.com/en-us/dax/right-function-dax) | β€” | β€” |
285+
| [`SUBSTITUTE`](https://learn.microsoft.com/en-us/dax/substitute-function-dax) | Instance number | β€” |
218286
| [`SEARCH`](https://learn.microsoft.com/en-us/dax/search-function-dax) | Execution outside filter context functions | β€” |
287+
| [`TRIM`](https://learn.microsoft.com/en-us/dax/trim-function-dax) | Trimming inner whitespace | β€” |
288+
| [`UPPER`](https://learn.microsoft.com/en-us/dax/upper-function-dax) | β€” | β€” |
289+
| [`VALUE`](https://learn.microsoft.com/en-us/dax/value-function-dax) | β€” | β€” |
219290

220291
### Time intelligence functions
221292

0 commit comments

Comments
Β (0)