Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
OlegV
Helper III
Helper III

KPI visualization - incorrect distance between indicator and target

Hello,

The KPI shows different disances when I automate indicator and target. But when I set them manually, it shows a correct distance. Please tell me where my mistake is. 

Input data:

I have a table with prices which update weekly. In KPI I need to show the last day price as an indicator and the first day price as a target. The KPI difference will be a subtraction between the last day and the first day.

OlegV_1-1632386113237.png

OlegV_8-1632386564042.png

 

There are also filters on this visual: a slicer " Delivery date" and a visual filter " Product used in charts"

OlegV_14-1632387568590.png

 

 

1) in this measure I set dates manually and it shows the difference correctly:

 

OlegV_4-1632386296915.png

 

OlegV_5-1632386318400.png

 

OlegV_0-1632388074937.png

 

OlegV_9-1632386601256.png

 

But every week I need to enter new dates manually, so I decided to automate.

 

2) So I changed DAX:

OlegV_10-1632386718499.pngOlegV_11-1632386741701.png

 

KPI shows a difference = 0.

OlegV_12-1632386775781.png

 

 

Where is my mistake?

2 REPLIES 2
mh2587
Super User
Super User

cahnge MAXX > MAX & MINX > MIN hope it will work


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Thank you.

1) It DID NOT work:

OlegV_0-1632404495065.pngOlegV_1-1632404510974.png

 

OlegV_3-1632404598732.png

2) I noticed, that the difference is not calculated correctly, because Target measure cannot detect the last day automatically. Hence it must be written like this, manually:

OlegV_0-1632840578163.png
But the Indicator measure detects the last day automatically:
OlegV_1-1632840914578.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.