Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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.
There are also filters on this visual: a slicer " Delivery date" and a visual filter " Product used in charts"
1) in this measure I set dates manually and it shows the difference correctly:
But every week I need to enter new dates manually, so I decided to automate.
2) So I changed DAX:
KPI shows a difference = 0.
Where is my mistake?
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!
Thank you.
1) It DID NOT work:
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:
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 39 | |
| 24 | |
| 23 |
| User | Count |
|---|---|
| 144 | |
| 106 | |
| 63 | |
| 38 | |
| 31 |