Bird
Raised Fist0
Power BIbi_tool~20 mins

Bar and column charts in Power BI - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Bar and Column Chart Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ visualization
intermediate
2:00remaining
Choosing the Right Chart Type for Comparison

You have sales data for different product categories over several years. You want to compare the total sales of each category side by side for a single year. Which chart type is best suited for this?

AStacked column chart showing sales per category stacked by year
BClustered column chart showing sales per category for the selected year
C100% stacked bar chart showing sales percentage per category across years
DLine chart showing sales trend per category over years
Attempts:
2 left
💡 Hint

Think about showing categories side by side for one year, not trends or percentages.

❓ dax_lod_result
intermediate
2:00remaining
Calculate Total Sales for Selected Year

Given a sales table with columns SalesAmount and Year, which DAX measure correctly calculates total sales for the year 2023?

ATotal Sales 2023 = SUM(Sales[SalesAmount]) WHERE Sales[Year] = 2023
BTotal Sales 2023 = SUMX(FILTER(Sales, Sales[Year] = 2023), Sales[SalesAmount])
CTotal Sales 2023 = CALCULATE(SUM(Sales[SalesAmount]), FILTER(Sales, Sales[Year] = 2023))
DTotal Sales 2023 = CALCULATE(SUM(Sales[SalesAmount]), Sales[Year] = 2023)
Attempts:
2 left
💡 Hint

Remember that CALCULATE needs a filter expression wrapped properly.

❓ data_modeling
advanced
2:00remaining
Optimizing Data Model for Bar Chart Performance

You have a large sales dataset with millions of rows. You want to create a bar chart showing sales by product category. Which data modeling approach improves performance the most?

ACreate a separate dimension table for product categories and relate it to the sales fact table
BDuplicate product category data inside the sales table to avoid joins
CKeep all sales data in one large flat table and create the bar chart directly
DUse calculated columns in the sales table to categorize products on the fly
Attempts:
2 left
💡 Hint

Think about star schema and reducing data duplication.

🔧 Formula Fix
advanced
2:00remaining
Fixing Incorrect Bar Chart Axis Labels

You created a bar chart showing sales by region, but the axis labels show numbers instead of region names. What is the most likely cause?

AThe region field used is a numeric ID instead of the region name
BThe sales measure is not aggregated properly
CThe chart type does not support text labels on the axis
DThe data source is missing region data
Attempts:
2 left
💡 Hint

Check what field is used on the axis.

🧠 Conceptual
expert
2:00remaining
Understanding When to Use Bar vs Column Charts

Which scenario best explains when a horizontal bar chart is more effective than a vertical column chart?

AWhen data values are very small and close to zero
BWhen showing trends over time with continuous dates
CWhen displaying percentages stacked to 100%
DWhen comparing many categories with long names that need to be fully visible
Attempts:
2 left
💡 Hint

Think about label readability and space.

Practice

(1/5)
1. Which type of chart is best to compare sales across different product categories with long names?
easy
A. Bar chart
B. Column chart
C. Pie chart
D. Line chart

Solution

  1. Step 1: Understand chart types and category names

    Bar charts display categories horizontally, which works well for long names because text fits better.
  2. Step 2: Match chart type to category length

    Column charts show vertical bars and are better for short or time-based categories, not long names.
  3. Final Answer:

    Bar chart -> Option A
  4. Quick Check:

    Long category names = Bar chart [OK]
Hint: Use bar charts for long category names [OK]
Common Mistakes:
  • Choosing column chart for long names
  • Confusing pie chart with bar chart
  • Using line chart for categorical comparison
2. Which of the following is the correct way to add a title to a bar chart in Power BI?
easy
A. Right-click the chart and type the title directly on bars
B. Select the chart, go to Format pane, and turn on Title under 'Visualizations'
C. Add a text box and place it over the chart without linking
D. Use DAX formula to create a title measure

Solution

  1. Step 1: Locate title settings in Power BI

    In Power BI, titles are added via the Format pane under the Visualizations section.
  2. Step 2: Enable and edit the title

    Turning on the Title toggle allows you to enter and customize the chart title properly.
  3. Final Answer:

    Select the chart, go to Format pane, and turn on Title under 'Visualizations' -> Option B
  4. Quick Check:

    Format pane > Title toggle = Select the chart, go to Format pane, and turn on Title under 'Visualizations' [OK]
Hint: Use Format pane to add chart titles [OK]
Common Mistakes:
  • Trying to type title directly on bars
  • Using unlinked text boxes as titles
  • Thinking DAX controls chart titles
3. Given a column chart showing monthly sales, what will happen if you add a filter to show only months with sales above 1000?
medium
A. The chart will convert to a bar chart automatically
B. The chart will show all months but highlight those above 1000
C. The chart will show no data because filters don't apply to visuals
D. The chart will display only columns for months with sales greater than 1000

Solution

  1. Step 1: Understand filter effect on visuals

    Filters in Power BI limit the data shown in visuals to only matching records.
  2. Step 2: Apply filter condition to monthly sales

    Filtering for sales > 1000 removes months with sales 1000 or less from the chart display.
  3. Final Answer:

    The chart will display only columns for months with sales greater than 1000 -> Option D
  4. Quick Check:

    Filter hides non-matching data = The chart will display only columns for months with sales greater than 1000 [OK]
Hint: Filters limit data shown in charts [OK]
Common Mistakes:
  • Thinking filters highlight but don't remove data
  • Assuming filters don't affect visuals
  • Expecting chart type to change automatically
4. You created a bar chart but the category labels overlap and are unreadable. What is the best way to fix this?
medium
A. Rotate the category labels or increase chart width
B. Increase the font size of the labels
C. Switch to a column chart to display categories vertically
D. Remove the labels completely

Solution

  1. Step 1: Identify cause of label overlap

    Long category names or many categories cause horizontal labels to overlap in bar charts.
  2. Step 2: Adjust label orientation or chart size

    Rotating labels or making the chart wider gives more space, improving readability without losing info.
  3. Final Answer:

    Rotate the category labels or increase chart width -> Option A
  4. Quick Check:

    Label rotation or width fixes overlap = Rotate the category labels or increase chart width [OK]
Hint: Rotate labels or widen chart to fix overlap [OK]
Common Mistakes:
  • Switching chart type unnecessarily
  • Increasing font size worsens overlap
  • Removing labels loses important info
5. You want to create a dashboard showing quarterly revenue trends and compare product categories side by side. Which combination of charts is best?
hard
A. Use a bar chart for quarterly revenue and a column chart for product categories
B. Use two pie charts, one for revenue and one for categories
C. Use a column chart for quarterly revenue and a bar chart for product categories
D. Use a line chart for categories and a stacked bar chart for revenue

Solution

  1. Step 1: Match chart types to data nature

    Quarterly revenue is time-based, best shown with column charts for clear trend visualization.
  2. Step 2: Choose chart for product categories

    Product categories often have longer names, so bar charts display them horizontally for readability.
  3. Step 3: Combine charts for dashboard clarity

    Using column chart for time and bar chart for categories side by side makes comparison easy and clear.
  4. Final Answer:

    Use a column chart for quarterly revenue and a bar chart for product categories -> Option C
  5. Quick Check:

    Time data = column, long names = bar [OK]
Hint: Time data = column chart; long names = bar chart [OK]
Common Mistakes:
  • Using pie charts for trend data
  • Mixing chart types incorrectly
  • Using bar chart for time series
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard