0
0
Power BIbi_tool~10 mins

Bar and column charts in Power BI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a basic bar chart visual in Power BI using the 'Sales' field.

Power BI
BarChart = SUMMARIZE(SalesData, SalesData[Product], "TotalSales", SUM(SalesData[[1]]))
Drag options to blanks, or click blank then click option'
AQuantity
BCustomer
CDate
DSales
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-numeric field like 'Date' or 'Customer' for summing.
2fill in blank
medium

Complete the DAX measure to calculate total sales for the column chart.

Power BI
TotalSales = CALCULATE(SUM(SalesData[[1]]))
Drag options to blanks, or click blank then click option'
AQuantity
BSales
CDiscount
DProfit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Quantity' or 'Discount' which do not represent total sales amount.
3fill in blank
hard

Fix the error in the DAX formula to correctly calculate total sales for the bar chart.

Power BI
TotalSales = SUM(SalesData[[1]])
Drag options to blanks, or click blank then click option'
ASales
BDate
CCustomer
DRegion
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to sum non-numeric columns like 'Date' or 'Customer'.
4fill in blank
hard

Fill both blanks to create a bar chart showing total sales by region.

Power BI
BarChart = SUMMARIZE(SalesData, SalesData[[1]], "TotalSales", SUM(SalesData[[2]]))
Drag options to blanks, or click blank then click option'
ARegion
BSales
CProduct
DDate
Attempts:
3 left
💡 Hint
Common Mistakes
Grouping by 'Product' or 'Date' instead of 'Region' for this chart.
5fill in blank
hard

Fill all three blanks to create a column chart measure that calculates total sales filtered by year 2023.

Power BI
TotalSales2023 = CALCULATE(SUM(SalesData[[1]]), SalesData[[2]] = [3])
Drag options to blanks, or click blank then click option'
AQuantity
BSales
CYear
D2023
Attempts:
3 left
💡 Hint
Common Mistakes
Filtering by wrong column or using a non-numeric field for sum.