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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
KevinMann
New Member

Latest KPI value weekly result using last KPI set date

Having trouble trying to show a table with latest KPI vaule on a week by week basis, to then be using in a line graph.

The Latest KPI is to show what the new KPI is that has been set to be used on a weekly basis.

 

I have tried a few measures but can't seem to get it right.  

Below is the closest I have managed to get to, however the Latest KPI results are including the previous value, where I only want the result to show the new value (latest KPI) going forwards.

 

Any ideas, where I may be going wrong.

Many Thanks  

 

KevinMann_0-1732144867711.png

 

2 REPLIES 2
KevinMann
New Member

Sorry forgot to add [KPI Date] is the date that the KPI has been set/updated.

Relationship set as below, if this helps

KevinMann_0-1732146041138.png

 

Anonymous
Not applicable

Hi @KevinMann ,

 

Modify your formula like below:

LatestKPI = 
CALCULATE(
    MAX('Table'[KPIValue]),
    FILTER(
        'Table',
        'Table'[Date] = MAX('Table'[Date])
    )
)
WeeklyLatestKPI = 
CALCULATE(
    [LatestKPI],
    ALLEXCEPT('Table', 'Table'[Week])
)

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)