-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds support for DAX (Data Analysis Expressions). https://docs.microsoft.com/en-us/dax/
- Loading branch information
Showing
16 changed files
with
843 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<h2>Comments</h2> | ||
<pre><code>// This is a comment</code></pre> | ||
<h2>Simple example</h2> | ||
<pre><code> | ||
Sales YTD := | ||
CALCULATE ( | ||
[Sales Amount], | ||
DATESYTD( 'Date'[Date] ) | ||
) | ||
</code></pre> | ||
<h2>Full example</h2> | ||
<pre><code> | ||
Burn Rate (Hours) = | ||
|
||
// Only consider those projects which have been alread created | ||
VAR filterDate = | ||
FILTER ( | ||
ALL ( 'Date'[Date] ), | ||
'Date'[Date] <= MAX('Date'[Date]) | ||
) | ||
|
||
RETURN | ||
IF ( | ||
// Show blank for months before project start | ||
MAX ( 'Project'[Project Created Relative Months Pos] ) < SELECTEDVALUE ( 'Date'[Fiscal RelativeMonthPos] ), | ||
BLANK (), | ||
MIN( | ||
1, | ||
DIVIDE ( | ||
// Add 0 to consider months with no hours | ||
[Hours Actual Billable] + 0, | ||
CALCULATE ( | ||
[Planned Hours] + 0, | ||
filterDate | ||
) | ||
) | ||
) | ||
) | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
TRUE | ||
FALSE | ||
NULL | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["boolean", "TRUE"], | ||
["boolean", "FALSE"], | ||
["boolean", "NULL"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for booleans. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/**/ | ||
/* foo | ||
bar */ | ||
// | ||
// foo | ||
-- | ||
-- foo | ||
---------------------------------------------------- | ||
|
||
[ | ||
["comment", "/**/"], | ||
["comment", "/* foo\r\nbar */"], | ||
["comment", "//"], | ||
["comment", "// foo"], | ||
["comment", "--"], | ||
["comment", "-- foo"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
'table'[field] | ||
'table name'[field] | ||
'ta""ble'[field] | ||
'ta''ble'[field] | ||
'table'[field name] | ||
'table name'[field name] | ||
table[field] | ||
table[field name] | ||
'table' | ||
'こんにちは' | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["data-field", "'table'[field]"], | ||
["data-field", "'table name'[field]"], | ||
["data-field", "'ta\"\"ble'[field]"], | ||
["data-field", "'ta''ble'[field]"], | ||
["data-field", "'table'[field name]"], | ||
["data-field", "'table name'[field name]"], | ||
["data-field", "table[field]"], | ||
["data-field", "table[field name]"], | ||
["data-field", "'table'"], | ||
["data-field", "'こんにちは'"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for datafield tokens. |
Oops, something went wrong.