Skip to content

Commit 677c475

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

File tree

1 file changed

+38
-20
lines changed

1 file changed

+38
-20
lines changed

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

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ 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 | β€” |
29+
| [`AVERAGEA`](https://learn.microsoft.com/en-us/dax/averagea-function-dax) | β€” | β€” |
3030
| [`AVERAGEX`](https://learn.microsoft.com/en-us/dax/averagex-function-dax) | Non-base table as input table | β€” |
3131
| [`COUNT`](https://learn.microsoft.com/en-us/dax/count-function-dax) | β€” | β€” |
3232
| [`COUNTA`](https://learn.microsoft.com/en-us/dax/counta-function-dax) | β€” | β€” |
3333
| [`COUNTAX`](https://learn.microsoft.com/en-us/dax/countax-function-dax) | Non-base table as input table | β€” |
3434
| [`COUNTBLANK`](https://learn.microsoft.com/en-us/dax/countblank-function-dax) | β€” | β€” |
35-
| [`COUNTROWS`](https://learn.microsoft.com/en-us/dax/countrows-function-dax) | β€” | Disregards input table expression and always returns 1 |
35+
| [`COUNTROWS`](https://learn.microsoft.com/en-us/dax/countrows-function-dax) | β€” | Disregards input table expression and always returns 50000 |
3636
| [`COUNTX`](https://learn.microsoft.com/en-us/dax/countx-function-dax) | Non-base table as input table | β€” |
3737
| [`DISTINCTCOUNT`](https://learn.microsoft.com/en-us/dax/distinctcount-function-dax) | β€” | Blanks are ignored |
3838
| [`DISTINCTCOUNTNOBLANK`](https://learn.microsoft.com/en-us/dax/distinctcountnoblank-function-dax) | β€” | β€” |
39-
| [`MAX`](https://learn.microsoft.com/en-us/dax/max-function-dax) | 2 arguments | Blanks are disregarded instead of being treated as 0 |
39+
| [`MAX`](https://learn.microsoft.com/en-us/dax/max-function-dax) | β€” | Blanks are disregarded instead of being treated as 0 in two-argument variant |
4040
| [`MAXA`](https://learn.microsoft.com/en-us/dax/maxa-function-dax) | β€” | β€” |
4141
| [`MAXX`](https://learn.microsoft.com/en-us/dax/maxx-function-dax) | Non-base table as input table | β€” |
42-
| [`MIN`](https://learn.microsoft.com/en-us/dax/min-function-dax) | 2 arguments | Blanks are disregarded instead of being treated as 0 |
42+
| [`MIN`](https://learn.microsoft.com/en-us/dax/min-function-dax) | β€” | Blanks are disregarded instead of being treated as 0 in two-argument variant |
4343
| [`MINA`](https://learn.microsoft.com/en-us/dax/mina-function-dax) | β€” | β€” |
4444
| [`MINX`](https://learn.microsoft.com/en-us/dax/minx-function-dax) | Non-base table as input table | β€” |
4545
| [`SUM`](https://learn.microsoft.com/en-us/dax/sum-function-dax) | β€” | β€” |
@@ -58,19 +58,19 @@ of the DAX documentation.
5858
| Function | <nobr>Unsupported features</nobr> | Caveats |
5959
| --- | --- | --- |
6060
| [`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 | β€” |
68-
| [`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 | β€” |
61+
| [`DAY`](https://learn.microsoft.com/en-us/dax/day-function-dax) | β€” | β€” |
62+
| [`HOUR`](https://learn.microsoft.com/en-us/dax/hour-function-dax) | β€” | β€” |
63+
| [`MINUTE`](https://learn.microsoft.com/en-us/dax/minute-function-dax) | β€” | β€” |
64+
| [`MONTH`](https://learn.microsoft.com/en-us/dax/month-function-dax) | β€” | β€” |
65+
| [`NOW`](https://learn.microsoft.com/en-us/dax/now-function-dax) | β€” | Time zone may depend on data warehouse settings |
66+
| [`QUARTER`](https://learn.microsoft.com/en-us/dax/quarter-function-dax) | β€” | β€” |
67+
| [`SECOND`](https://learn.microsoft.com/en-us/dax/second-function-dax) | β€” | β€” |
68+
| [`TIME`](https://learn.microsoft.com/en-us/dax/time-function-dax) | Non-literal date parts | β€” |
69+
| [`TODAY`](https://learn.microsoft.com/en-us/dax/today-function-dax) | β€” | Time zone may depend on data warehouse settings |
70+
| [`UTCNOW`](https://learn.microsoft.com/en-us/dax/utcnow-function-dax) | β€” | Time zone may depend on data warehouse settings |
71+
| [`UTCTODAY`](https://learn.microsoft.com/en-us/dax/utctoday-function-dax) | β€” | Time zone may depend on data warehouse settings |
72+
| [`WEEKDAY`](https://learn.microsoft.com/en-us/dax/weekday-function-dax) | β€” | β€” |
73+
| [`YEAR`](https://learn.microsoft.com/en-us/dax/year-function-dax) | β€” | β€” |
7474

7575
### Filter functions
7676

@@ -102,6 +102,18 @@ of the DAX documentation.
102102

103103
No financial functions currently supported.
104104

105+
### INFO functions
106+
107+
<InfoBox>
108+
109+
Learn more in the
110+
[relevant section](https://learn.microsoft.com/en-us/dax/info-functions-dax)
111+
of the DAX documentation.
112+
113+
</InfoBox>
114+
115+
No INFO functions currently supported.
116+
105117
### Information functions
106118

107119
<InfoBox>
@@ -115,7 +127,7 @@ of the DAX documentation.
115127
| Function | <nobr>Unsupported features</nobr> | Caveats |
116128
| --- | --- | --- |
117129
| [`ISAFTER`](https://learn.microsoft.com/en-us/dax/isafter-function-dax) | β€” | β€” |
118-
| [`ISBLANK`](https://learn.microsoft.com/en-us/dax/isblank-function-dax) | β€” | Blanks are treated as equivalent to nulls and vice versa |
130+
| [`ISBLANK`](https://learn.microsoft.com/en-us/dax/isblank-function-dax) | β€” | β€” |
119131
| [`ISEVEN`](https://learn.microsoft.com/en-us/dax/iseven-function-dax) | β€” | β€” |
120132
| [`ISODD`](https://learn.microsoft.com/en-us/dax/isodd-function-dax) | β€” | β€” |
121133
| [`ISONORAFTER`](https://learn.microsoft.com/en-us/dax/isonorafter-function-dax) | β€” | β€” |
@@ -136,7 +148,7 @@ of the DAX documentation.
136148
| --- | --- | --- |
137149
| [`AND`](https://learn.microsoft.com/en-us/dax/and-function-dax) | β€” | β€” |
138150
| [`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 | β€” |
151+
| [`IF`](https://learn.microsoft.com/en-us/dax/if-function-dax) | β€” | Coerces results to common type |
140152
| [`NOT`](https://learn.microsoft.com/en-us/dax/not-function-dax) | β€” | β€” |
141153
| [`OR`](https://learn.microsoft.com/en-us/dax/or-function-dax) | β€” | β€” |
142154
| [`SWITCH`](https://learn.microsoft.com/en-us/dax/switch-function-dax) | β€” | β€” |
@@ -159,7 +171,9 @@ of the DAX documentation.
159171
| [`ASIN`](https://learn.microsoft.com/en-us/dax/asin-function-dax) | β€” | β€” |
160172
| [`ATAN`](https://learn.microsoft.com/en-us/dax/atan-function-dax) | β€” | β€” |
161173
| [`CEILING`](https://learn.microsoft.com/en-us/dax/ceiling-function-dax) | Significance other than 1 | β€” |
174+
| [`CONVERT`](https://learn.microsoft.com/en-us/dax/convert-function-dax) | β€” | β€” |
162175
| [`COS`](https://learn.microsoft.com/en-us/dax/cos-function-dax) | β€” | β€” |
176+
| [`DIVIDE`](https://learn.microsoft.com/en-us/dax/divide-function-dax) | β€” | β€” |
163177
| [`EXP`](https://learn.microsoft.com/en-us/dax/exp-function-dax) | β€” | β€” |
164178
| [`FLOOR`](https://learn.microsoft.com/en-us/dax/floor-function-dax) | Significance other than 1 | β€” |
165179
| [`INT`](https://learn.microsoft.com/en-us/dax/int-function-dax) | β€” | β€” |
@@ -193,7 +207,7 @@ of the DAX documentation.
193207

194208
| Function | <nobr>Unsupported features</nobr> | Caveats |
195209
| --- | --- | --- |
196-
| [`BLANK`](https://learn.microsoft.com/en-us/dax/blank-function-dax) | β€” | Blanks are treated as equivalent to nulls and vice versa |
210+
| [`BLANK`](https://learn.microsoft.com/en-us/dax/blank-function-dax) | β€” | β€” |
197211

198212
### Parent and child functions
199213

@@ -246,9 +260,12 @@ of the DAX documentation.
246260
| Function | <nobr>Unsupported features</nobr> | Caveats |
247261
| --- | --- | --- |
248262
| [`ADDCOLUMNS`](https://learn.microsoft.com/en-us/dax/addcolumns-function-dax) | Aggregate expressions | β€” |
263+
| [`CURRENTGROUP`](https://learn.microsoft.com/en-us/dax/currentgroup-function-dax) | β€” | β€” |
249264
| <nobr>[`DISTINCT`](https://learn.microsoft.com/en-us/dax/distinct-function-dax) (column)</nobr> | β€” | β€” |
250265
| <nobr>[`DISTINCT`](https://learn.microsoft.com/en-us/dax/distinct-table-function-dax) (table)</nobr> | Filter context for table expressions | β€” |
266+
| [`GROUPBY`](https://learn.microsoft.com/en-us/dax/groupby-function-dax) | β€” | β€” |
251267
| [`IGNORE`](https://learn.microsoft.com/en-us/dax/ignore-function-dax) | 2+ arguments | Doesn't modify filter context, silently ignored |
268+
| [`NATURALINNERJOIN`](https://learn.microsoft.com/en-us/dax/naturalinnerjoin-function-dax) | β€” | β€” |
252269
| [`NATURALLEFTOUTERJOIN`](https://learn.microsoft.com/en-us/dax/naturalleftouterjoin-function-dax) | β€” | β€” |
253270
| [`ROLLUPADDISSUBTOTAL`](https://learn.microsoft.com/en-us/dax/rollupaddissubtotal-function-dax) | `grandtotalFilter` | β€” |
254271
| [`ROLLUPGROUP`](https://learn.microsoft.com/en-us/dax/rollupgroup-function-dax) | β€” | β€” |
@@ -304,6 +321,7 @@ No time intelligence functions currently supported.
304321

305322
| Function | <nobr>Unsupported features</nobr> | Caveats |
306323
| --- | --- | --- |
324+
| [`GROUPCROSSAPPLY`](https://learn.microsoft.com/en-us/dax/groupcrossapply-function-dax) | β€” | β€” |
307325
| [`SAMPLEAXISWITHLOCALMINMAX`](https://learn.microsoft.com/en-us/dax/sampleaxiswithlocalminmax-function-dax) | β€” | Silently ignored, returning input table expression |
308326

309327

0 commit comments

Comments
Β (0)