Dax Coding Flashcards
M is sensitive …
Case Sensitive
Steps Names are called
Identifiers if it has a space it will use a hash and quotes
Can only combine columns of the
Same type. I cannot combine TEXT &NUMBER must be both the same. It is not like in Excel
Text.From
Returns the text representation of value. The value can be a number, date, time, datetime, datetimezone, logical, duration or binary value. If the given value is null, Text.From returns null.
Text.From(value as any, optional culture as nullable text) as nullable text
date
- Creates a date value from year year, month month, and day day.
- # date(year as number, month as number, day as number) as date
The sequence in which columns are selected when deleting others
Determine the sequence of the final view
Step Back
Click the fx button and instead of using the last step use the one before
Using steps in conditional filter
- Create the filter using a numerical value
2. - Edit the formula and replace the value by the name of the step that contains the dynamic value (eg. Max, Avg ..)
Using steps in conditional filter
- Create the filter using a numerical value
2. - Edit the formula and replace the value by the name of the step that contains the dynamic value (eg. Max, Avg ..)
When you tweak the formula bar
The icon cog dissapears from the stepo view for that particular step
Drill Down feature
Restricts the value to whatever was in the cell were ist was applied
Muliple selection of columns
You can use a transform function for more than one column at a time, eg replace values
Selecting the latest date data
In the filter you have the option to select current: month, year etc
Conecting to Web
- Can scrape and connect to web page.
- Can connect to a downloadable file from the website/webpage.
- If connected to a file it could be that the website changes the address of the link in which case the Excel Query wont be able to refresh.
Append Data Change Type
Best to leave it for last appended query and not to the individual ones