Forum Discussion

GKJARC's avatar
GKJARC
Resolver I
2 years ago

Comparing values to target values

Hi everyone,

 

I'm trying to compare achieved lead times to target lead times. These target values come from a database and can differ per year.
My sample PBIX-file can be downloaded via the link at the bottom of this post.

DIM_Targets:

 

The idea is to visualize the data in the report as follows:

 

Blue are columns from DIM_Maintenance, 'Lead time' is a calculated column based on StartDate and EndDate.

Red are my two measures to fetch the target value from DIM_Targets, for the corresponding year of the StartDate. However, my measure picks the MAX target, so for the bottom 2 rows the targets now say 5 where they should say 4, as 4 is the target value for 2023.
'Achieved' is when Lead time <= Target value, else 'Not achieved'.

 

Model:

 

2 questions:

1) The targets could be used for DIM_Maintenance and DIM_Customer. Is this model a good setup for using targets?

2) How to show the right target value (Target ID = T1) in the 'Target (days)' column? In such a way that the calculated column or measure can also be used in a slicer, to filter e.g. only 'Achieved'.

Please find my sample PBIX-file here: 
https://we.tl/t-OpIWrDl1hS

Thanks!

4 Replies