Introduction
This week’s challenge uses a few layering techniques in the Deneb custom visual.
Here you will be challenged to use multiple independent scales on a layered plot.
Advanced users can concatenate total bars for extra credit!
Requirements
Power Query
- Obtain the dataset from Github
- Model and load data
Power BI Desktop
- Obtain Deneb from AppSource
- Create Measure to calculate percentage marriages by month for each State
- Create rectangle mark layer, encode Month along Y-Axis, State along X-Axis, % Marriage by State by colour
- Create your own colour scale
- Create Measure to calculate sum of marriages
- Create circle mark layer, encode Month along Y-Axis, State along X-Axis, sum of marriages by Size
- Create text mark layer, encode Month along Y-Axis, State along X-Axis, sum of marriages by Size, colour the text marks conditionally based on gradient for best contrast.
- Set the scales to resolve independently
- TIP :
“resolve”: {
“scale”: {
“color”: “independent”,
“size”: “independent”,
“x”: “shared”,
“y”: “shared”
}
Dataset
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