The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
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.
Sorry forgot to add [KPI Date] is the date that the KPI has been set/updated.
Relationship set as below, if this helps
User | Count |
---|---|
20 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
28 | |
12 | |
12 | |
9 | |
8 |