---
title: Power BI Custom Visuals - Linear Gauge
description: Learn how to use the Linear Gauge Power BI Custom Visual, which is often used to visualize KPIs.
---

[Pragmatic Works Nerd News ](https://pragmaticworks.com/blog)

# [Power BI Custom Visuals - Linear Gauge](https://pragmaticworks.com/blog/power-bi-custom-visuals-linear-gauge)

 Written by [Devin Knight](https://pragmaticworks.com/blog/author/devin-knight) | Dec 22, 2016

In this module, you will learn how to use the Linear Gauge Power BI Custom Visual.  The Linear Gauge is best used to visualize a KPI. It gives you the ability to compare an actual vs. target, as well as showing up to two trend lines.

### Module 30 – Linear Gauge

### Downloads

- Power BI Custom Visual – [Linear Gauge](https://pragmaticworksonline.sharepoint.com/:f:/s/FileShare/Ejn3BZIKy-NHk0DHsQUqT5QBx8WaO5HCyu0Qo7pWOzaWmw?e=cGTib1)
- Dataset – [Region Gauge.xlsx](https://pragmaticworksonline.sharepoint.com/:f:/s/FileShare/Eg9Q4CjfNBRHoJkfvoWy9foBGhgvp7Y-UWFsZk9zMGDMaQ?e=LGXMGo)
- Completed Example – [Module 30 – Linear Gauge.pbix](https://pragmaticworksonline.sharepoint.com/:f:/s/FileShare/Eg9Q4CjfNBRHoJkfvoWy9foBGhgvp7Y-UWFsZk9zMGDMaQ?e=LGXMGo)

### Key Takeaways

- The Linear Gauge allows you to compare actual values vs a goal.
- This visual has automatically built-in the ability to calculate a variance.
- It also has the ability to visualize up to two trend lines. For example, to display a month-over-month and year-over-year variance.

<https://devinknightsql.files.wordpress.com/2016/12/image4.png>

*This shows 4 separate Linear Gauges displaying sales performance by region.*

- Under the **Format** paintbrush, there are several options available for customizing the Linear Gauge.
- Usually, your **General** section doesn’t have much to offer other than the size and placement of our visual. However for the Linear Gauge, it also allows you to change the color of the bar used in the gauge using the **Main Color** and **Comparison Color** properties.

<https://devinknightsql.files.wordpress.com/2016/12/image5.png>

- Under the **Data Label** section, you can format how the measure values are displayed on the gauges and the color of the text that those values are showed in.

<https://devinknightsql.files.wordpress.com/2016/12/image6.png>

- Under the **Trend Label** section, you can the format how the trend values are displayed on the gauges and the color of the text that those values are showed in.

<https://devinknightsql.files.wordpress.com/2016/12/image7.png>

In addition to these properties, you have a pair of settings that appear on every visual to adjust the background color, add a border around the visual and lock the aspect ratio.

### Find Out More

You will always be able to find this video module and advanced viewing of future modules on the Pragmatic Works On-Demand Training platform or [view my previous blog posts](https://blog.pragmaticworks.com/topic/power-bi-custom-visuals).

[View full post](https://pragmaticworks.com/blog/power-bi-custom-visuals-linear-gauge)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Devin Knight"
  },
  "dateModified" : "2023-03-28T17:26:04.150Z",
  "datePublished" : "2016-12-22T16:03:08Z",
  "headline" : "Power BI Custom Visuals - Linear Gauge",
  "image" : {
    "@type" : "ImageObject",
    "height" : 200,
    "url" : "http://blog.pragmaticworks.com/hubfs/Banners/Power-BI-Banner.jpg",
    "width" : 600
  },
  "mainEntityOfPage" : "https://pragmaticworks.com/blog/power-bi-custom-visuals-linear-gauge",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60.0,
      "url" : "https://blog.pragmaticworks.com/hubfs/PW%20Logo-2.png",
      "width" : 217.56097
    },
    "name" : "Pragmatic Works Blog"
  }
}
```