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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.