Add measures to Power BI Desktop models Flashcards

1
Q

What are implicit measures in Power BI?

A

Automatic behaviors that allow visuals to summarize model column data without explicitly defining calculations.

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

How are numeric columns identified in the Fields pane in Power BI?

A

By the sigma symbol (∑), indicating they are summarizable.

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

What is the default summarization for a numeric column in Power BI?

A

Sum, but it can be changed to average, minimum, maximum, count (distinct), count, standard deviation, variance, or median.

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

How are text columns summarized in Power BI?

A

With first (alphabetically), last (alphabetically), count (distinct), and count.

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

What are the limitations of implicit measures?

A

They can be aggregated inappropriately, only work for simple scenarios, and are not supported by MDX queries.

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

How do you add a measure to a table in Power BI?

A

Select the table in the Fields pane, then go to the Table Tools contextual ribbon, and select New measure.

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

What is the DAX formula to create a Revenue measure?

A

Revenue = SUM(Sales[Sales Amount])

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

How do you format a measure in Power BI?

A

After creating the measure, use the Measure tools contextual ribbon to set formatting options like decimal places.

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

What are some examples of simple measures using different DAX functions?

A

Minimum Price = MIN(Sales[Unit Price])
Maximum Price = MAX(Sales[Unit Price])
Average Price = AVERAGE(Sales[Unit Price])

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

How do you create a measure that counts rows in a table?

A

Use the COUNTROWS function, e.g., Order Line Count = COUNTROWS(Sales)

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

Why is it recommended to hide columns after creating measures?

A

To limit summarization options and ensure report authors use the defined measures.

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

What is a compound measure in Power BI?

A

A measure that references one or more other measures.

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

How do you define a Profit measure in DAX?

A

Profit = [Revenue] - [Cost]

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

What is the benefit of using compound measures over calculated columns?

A

They optimize the semantic model by reducing its size and shortening data refresh times.

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

What should be done with calculated columns when a compound measure can produce the required result?

A

Remove the calculated columns to optimize the model.

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

What is the Quick Measures feature in Power BI?

A

A feature that allows you to quickly perform common calculations by generating the DAX expression for you.

17
Q

How do you create a quick measure for profit margin in Power BI?

A

Select the Sales table, go to Table tools > Quick measure, choose Division, and configure the measure with Profit as the numerator and Revenue as the denominator.

18
Q

What DAX formula is generated for the quick measure to calculate profit margin?

A

Profit divided by Revenue = DIVIDE([Profit], [Revenue])

19
Q

How do you format the Profit Margin measure in Power BI?

A

Rename it as Profit Margin, and set the format to a percentage with two decimal places.

20
Q

What is the main difference between calculated columns and measures in Power BI?

A

Calculated columns are computed during data refresh and stored in the model, while measures are calculated at query time.

21
Q

When should you use calculated columns?

A

Use calculated columns when you need to filter or group data by the column or use it in relationships.

22
Q

When should you use measures?

A

Use measures for calculations that need to be dynamic and context-aware, such as aggregations.

23
Q

What is a potential downside of using calculated columns?

A

They can increase the size of the model and affect performance.

24
Q

What is an advantage of using measures over calculated columns?

A

Measures are more efficient as they do not increase the model size and provide flexibility in dynamic calculations.