2023 Week 45 | Power BI: Create a dumbbell chart with Deneb

Introduction

Welcome back to Workout Wednesday! This week we’re creating a dumbbell chart to compare 2 sets of values using Deneb! If this is your first time using Deneb I highly recommend you play around with either the Vega or Vega-lite languages in the online editor, where you can load the code from examples, amend it, and see what your changes do to the visual!

In this challenge, you’ll build a single dumbbell chart using Deneb and some fun sample data. Play around with your fonts, colors, and shapes to come up with a visual that works for you!

Meagan created a similar challenge in week 24 – check that one out for more info on comparing 2 sets of values using Deneb!

Requirements

Get and transform data

  1. Enter data in Power Query or grab it from the solution file
    ProductYearUnits
    Sold
    Year No
    Pirate Booty Year 15001
    Pirate Booty Year 26002
    Buccaneer’s Bounty Year 17501
    Buccaneer’s Bounty Year 29002
    Pirate Parrots Year 13001
    Pirate Parrots Year 24502
    Scurvy Snacks Year 19001
    Scurvy Snacks Year 28002
    Cannonballs Year 16001
    Cannonballs Year 27002

Create your dumbbell chart

  1. Add the Deneb custom visual to your report
  2. Add the columns from your dataset into the values field well
  3. Start building! I used the Ranged Dot Plot sample from the Vega editor as my starting point
  4. Customize your formatting and add any fun graphics and text to your report.
  5. Ensure that all visuals meet the minimum standards of having alt text, that the tab order in your report makes sense, and that your color choices meet the minimum standards. 
 

Dataset

This week’s challenge uses a made-up dataset that you can enter straight into Power BI.

ProductYearUnits SoldYear No
Pirate Booty Year 15001
Pirate Booty Year 26002
Buccaneer’s Bounty Year 17501
Buccaneer’s Bounty Year 29002
Pirate Parrots Year 13001
Pirate Parrots Year 24502
Scurvy Snacks Year 19001
Scurvy Snacks Year 28002
Cannonballs Year 16001
Cannonballs Year 27002

Share

After you finish your workout, share on Twitter using the hashtags #WOW2023 and #PowerBI, and tag @MMarie, @shan_gsd, @KerryKolosko. Also make sure to fill out the Submission Tracker so that we can count you as a participant this week in order to track our participation throughout the year.

Solution

Solution File available for download via Data Stories Gallery.

Scroll to Top