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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
OlegV
Helper II
Helper II

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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