How to evaluate the Targets for each year?

How to evaluate the Targets for each year?

Learn how to set and evaluate yearly sales targets in Power BI. Step-by-step guide for creating a Target table, DAX measures, and interactive visuals like slicers, tables, cards, and gauges to track performance.

Situation

A screenshot of a computer

AI-generated content may be incorrect.

Available

Table Tsales with SaleID – CustomerID – Product ID – Date Of Sale – Quantity – Total Price

Add or create the Additional Table with the Targets

If you have the TargetSalesQuantity Table in an external source you can use ‘Get Data’

Otherwise

Create the TargetSalesQuantity Table by using ‘Enter Data’ 

Example:

A screenshot of a computer

AI-generated content may be incorrect.

Procedure

Step 1 – Creation of Calendar Date Table

A screenshot of a computer code

AI-generated content may be incorrect.

!! Create a link between the following tables Calendar and TargetSalesQuantity based on Year

A screenshot of a computer

AI-generated content may be incorrect.

Step 2 – Creation of a Separate Measures Table

Create the Measures Table by using ‘Enter Data’ 

Create Table

Step 3 – Create the following measures – part 1

=> SumSalesQuantity <=

A close-up of a sign

AI-generated content may be incorrect.

This is the sum of the Quantity of the Tsales Table

=> TotalYTDSalesQuantity <=

A black and purple text

AI-generated content may be incorrect.

Based on the measure SumSalesQuantity it calculates the Total year to date.

=> SumSalesQuantityTargetYTD <=

This measure calculates the Sum of the TargetQuantity from the beginning of the current year up to the current date.

=> SumSalesQuantityTarget% <=

This Measure calculates how many % is already sold regarding the Target Sales Quantity.

Additional: Set the Format to Percentage

=> DifferenceTargetSalesQuantity <=

Based on the Current Sales Quantity YTD and the Target Sales Quantity it calculates the ‘actual’ difference

Step 4 – Creation of Visuals – part 1

Step 4.1 – Create a Slicer

Select ‘Year’ of the Table ‘Calendar’ add this to a Slicer – Visual

Go to Format Your Visual – Visual – Slicer Settings – Options and choose for ‘Tile’

A white rectangle with black numbers

AI-generated content may be incorrect.

Step 4.2 – Create a Table Visual

Add the following elements:

-/ Year from the Calendar Table

-/ Measure SumSalesQuantity

-/ TargetQuantity from the TargetSalesQuantity Table

A screenshot of a data

AI-generated content may be incorrect.

Step 4.3 – Create a Table Visual

Add the following elements:

-/ MonthNameShort from the ‘Calendar’ Table

-/ Measures SumSalesQuantity & TotalYTDSalesQuantity & SumSalesQuantityTarget% & DifferenceTargetSalesQuantity

A screenshot of a data

AI-generated content may be incorrect.

Step 5 – Create the following measures – part 2

=> FilteredSalesQuantity <=

Based on the selected year in the slicer it calculates the SumSalesQuantity for that specific year.

=> FilteredTargetQuantity <=

A white background with blue text

AI-generated content may be incorrect.

Based on the selected year in the slicer it calculates the TargetQuantity for that specific year.

>= Gauge Color <=

A computer code with text

AI-generated content may be incorrect.

Measure as Conditional Formatting used in the Gauge Visual.

Step 6 – Creation of Visuals – part 2

Step 6.1 – Create a Card (new) Visual)

Add the following elements:

-/ Measures FilteredSalesQuantity & FilteredTargetQuantity

Use ‘Format your visual’ where needed

A screenshot of a phone

AI-generated content may be incorrect.

Step 6.2 – Create a Gauge Visual

Add the following elements:

-/ Value: Measure FilteredSalesQuantity

-/ Target Value: Measure FilteredTargetQuantity

-/ Format your visual – Visual – Gauge Axis: Min= Auto & Max = 7000

A screenshot of a computer

AI-generated content may be incorrect.

-/ Format your visual – Visual – Colors -Fill Color
Use the measure as Conditional Formatting

A screenshot of a computer

AI-generated content may be incorrect.
A screenshot of a computer

AI-generated content may be incorrect.
A blue square with a yellow and white circle

AI-generated content may be incorrect.A green and white meter

AI-generated content may be incorrect.A blue square with a red and white circle

AI-generated content may be incorrect.

Result

A screenshot of a computer

AI-generated content may be incorrect.

We have now an interactive report (page) where the Forecast Targets are compared with the ‘Actual/current’ values for the month of the select year

Conclusion

Some important Things:

* There must be separate Table with the Target Values

* Create a link between the Calendar Table and Target Tables based on year

Based on ‘simple’ measures you can show the necessary information.

Author: Luc Debois © August 2025 – Version 1.0

Share this post: