Navigating Intune Reporting with Power BI Conditional Formatting

by | Apr 3, 2024 | Power BI, Reporting

So, I was talking to a friend that was using the ConfigMgr Client Health Reports and they provided some feedback. That feedback was “It would be great if you could highlight which Devices are in which state”. I said that you can user Power BI Conditional Formatting for that. They asked how can you do that?

Completed Power Bi Conditional Formatting Report (Hand on Lab)

So I’m writing this after releases the “Navigating Intune Reporting: Elevate Your Reporting Skills With Power BI” (Grab your copy now) eBook. I thought this would make a good addition to the eBook but before I do that I will make it into the blog. So, this blog will be slight different than other blogs as not only will I show you the steps and create a video. But I will also create it in a Hand on Lab style that will go into volume 2 of the eBook. You get it first!

For this example, I will extend the ConfigMgr Client Health – Computer Details page and add color coding to the Status column. Green for Both environments, blue for ConfigMgr Only and red for Health Only.

Power BI Conditional Formatting Lab – Text

In this lab you will change the background color for a given text within a column. Before starting you will require the Power BI reports for ConfigMgr Client Health Reports. Otherwise, you will have to extrapolate the steps for your report. I encourage you to use your own report.

Instructions

Screenshot (if applicable)

1

Open the ConfigMgr Client Health report with Power BI and navigate to the Computer Details

2

Within the Visualizations section, under the columns, select the Status column. Click the popup menu (carrot)

Carrot popup menu location.

3

In the popup menu, point to Conditional formatting then Click Background color.

4

In the first text box, replace the “text” with the real condition text that you want set a background color for. In this example we want Both. It is important to note that case matters.

Changing the value textbox to "Both"

5

Select the color drop down, Select More colors…

The More color... menu location.

6

Select a light green for the background. Then click OK to return to the rules page.

7

Click New rule in its text box enter Health Only. Next color drop down, this time select the light red. Finally click OK to return to the rules page.

8

Again, click New rule in its text box enter ConfigMgr Only. The color drop down default is a light blue. Leave it as is or adjust as needed. Your rules should look similar to the following. Click OK to complete this section.

Complete Conditional Formatting rules for the Status column.

9

Upon returning to the report page your results should look similar to the following.

Final report results of the Conditional Formatting rules for Status column.

Power BI Conditional Formatting Lab – Values

In this lab you will change the background color for a given value within a column. Again, you will require the ConfigMgr Client Health Reports. Otherwise, you will have to extrapolate the steps for your report. I encourage you to use your own report as it is a great way to learn.

Instructions

Screenshot (if applicable)

1

Open the ConfigMgr Client Health report with Power BI and navigate to the Computer Details

2

We will add the OSDiskFreeSpace to the report next to the Model column. Expand Query1 and locate OSDiskFreeSpace Select and drag it to the Columns section, just below the Model column.

Dragging the OSDiskFreeSpace to the Columns section.

3

Click the popup (carrot) menu next to OSDiskFreeSpace. In the popup menu, point to Conditional formatting then Click Background color.

4

Change the Format style to Rules.

5

Change the Summarization to Sum.

6

Within the First rule adjust value boxes to -9999 and number before change the color to light red as you did with the previous lab. At this point your rules pages will look similar to the screenshot.

First rule of the Conditional Formatting for values.

7

Click New rule. Repeat the process for 0 to 40 with a Yellow. Then again with 40-60 with Blue.

8

Repeat the process with 60-70, 70-80, 80-90, 90-9000, each with its own color. When complete your rules will look similar to the screenshot.

Click OK to complete the process.

All Conditional Formatting rules for values.

9

Your completed report will look similar to the opening screenshot.

Power BI Conditional Formatting Video

This is the first Hands on Lab style blog that I have posted. Did it work? Let me know. Again, If you have any questions about Power BI Conditional Formatting Hands on Lab. Please feel free to contact me @GarthMJ Please also subscribe to my YouTube channel and newsletter.