Sample Data
This table shows sales and costs data for three products.
| Cell | Value |
|---|---|
| A1 | Sales |
| A2 | 100 |
| A3 | 200 |
| A4 | 300 |
| B1 | Costs |
| B2 | 50 |
| B3 | 80 |
| B4 | 70 |
This table shows sales and costs data for three products.
| Cell | Value |
|---|---|
| A1 | Sales |
| A2 | 100 |
| A3 | 200 |
| A4 | 300 |
| B1 | Costs |
| B2 | 50 |
| B3 | 80 |
| B4 | 70 |
SUM(A2:A4) + AVERAGE(B2:B4)A B 1 |Sales | Costs | 2 | 100 | 50 | 3 | 200 | 80 | 4 | 300 | 70 | SUM uses cells A2, A3, A4 AVERAGE uses cells B2, B3, B4
A B C 1 |Sales | Costs | Result | 2 | 100 | 50 | | 3 | 200 | 80 | | 4 | 300 | 70 | 666.67 |
What does the SUM function do in Power BI?
Which of the following is the correct syntax to calculate the average of the Sales[Amount] column in DAX?
?Given the table Sales with Amount values: 100, 200, 300, what is the result of this DAX measure?
TotalAmount = SUM(Sales[Amount])
AverageAmount = AVERAGE(Sales[Amount])What are the values of TotalAmount and AverageAmount?
Identify the error in this DAX formula intended to calculate the average sales amount:
AverageSales = SUM(Sales[Amount]) / COUNT(Sales)You have a Sales table with columns Region and Amount. You want to create a measure that shows the average sales amount only for the "East" region. Which DAX formula correctly calculates this?
?Pass the test and this pattern moves unknown