Apply conditional formatting
Conditional formatting
Now that we made a data model and added visuals, you now create a full report.
Let's get started. We begin where we left off at the end of Module 4 within the report you saved titled MyFirstPowerBIModel. If you're starting the lab from this module, or missed the last modules, start with the Lab 3 solution.pbix file located in the Reports folder of the student files.
With the Matrix visual selected, navigate to the Values section in the Visualizations pane.
Select the arrow to the right of % Growth.
Select Conditional Formatting and then choose Background color. The Background color dialog box opens. This dialog provides options to format the report background color using either rules or diverging colors.
In the Background color - % Growth dialog box, select the Add a middle color checkbox.
Then, select OK.
Note
Conditional formatting can also be based on another column using the Color based on option from the drop-down menu.
Note
As a reminder if you see 0.00% for every value in the % of Growth column in the Matrix then you likely need to multi-select Australia and 2021, and drill-down to the Extreme catageory in the Matrix visual, like you did in Module 4.
Make sure the report is filtered by VanArsdel, Ltd. using the Manufacturer slicer.
Select the down arrow in the header of the Sum of Revenue by Country visual to turn on the drill down mode (this could also be located at the bottom of the visual based on how you placed the visual within the canvas).
Within the visual, select the Australia column to drill down to the State level.
Disable drill down mode on the Revenue by Country and State visual.
Make sure you still have the year 2021 selected in the Sum of Revenue by Year visual. If you don't, hold down the Ctrl key on your keyboard and select the 2021 column.
At this point, your canvas and visuals should look like the figure here. You can resize and move visuals as you need.
Select the Manufacturer slicer visual in the canvas.
In the Visualizations pane, switch to the Format visual tab.
Expand the Slicer settings section, then expand the Options section.
From the Style drop-down, select Tile. Notice that the Manufacturer slicer visual changes to a tile style. You might need to resize your visual so that you can view all the Manufacturers at once within the list.
Note
There are other options that can optionally be changed here to modify the outline color, weight, and more. There is an option to enable the Select All option in the visual. There is also an option to make the slicer multi-select. Feel free to explore other formatting options.
Select VanArsdel, Ltd. in the Slicer visual.
Now that we applied some conditional formatting and extended the Slicer visual to have clickable tiles, we'll work towards refining the report further in the next unit.