Dax Coding Flashcards

1
Q

M is sensitive …

A

Case Sensitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Steps Names are called

A

Identifiers if it has a space it will use a hash and quotes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Can only combine columns of the

A

Same type. I cannot combine TEXT &NUMBER must be both the same. It is not like in Excel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Text.From

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

date

A
  • Creates a date value from year year, month month, and day day.
  • # date(year as number, month as number, day as number) as date
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The sequence in which columns are selected when deleting others

A

Determine the sequence of the final view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Step Back

A

Click the fx button and instead of using the last step use the one before

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Using steps in conditional filter

A
    • 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 ..)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Using steps in conditional filter

A
    • 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 ..)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When you tweak the formula bar

A

The icon cog dissapears from the stepo view for that particular step

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Drill Down feature

A

Restricts the value to whatever was in the cell were ist was applied

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Muliple selection of columns

A

You can use a transform function for more than one column at a time, eg replace values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Selecting the latest date data

A

In the filter you have the option to select current: month, year etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Conecting to Web

A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Append Data Change Type

A

Best to leave it for last appended query and not to the individual ones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Append Data - Sample File

A

Is the first file Excel uses and on which it will repeat the steps for the other files to append
It will determine the columns in the final table

17
Q

Append folders filtering

A

You can filter the files before you append them all I have to do is go to the second step and in the view select the column to filter

18
Q

Import from a workbook, multiple dynamic selection of tabs/sheets

A

Instead of selecting each tab or multiple tabs, right click in the import window the folder with the name of the workbook and chose transform

19
Q

Combining sheets vs combining files

A

Combining sheets I dont the combine button but an expand button

20
Q

M Function Excel.CurrentWorkbook()

A

Brings to the query view the name of the sheets and the tables (to expand)

21
Q

M Function Excel.CurrentWorkbook() double count risk

A

If the result is copied to the same workbook, becaus the function looks for the CurrentWorkbook it is going to incorporate the sheet result in the query and records would be double counted. YOU NEED to introduce a filter in Query Editor for the name of the sheet that contains the final report