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
Reigning_data
Frequent Visitor

KPI Problem

Hi All,

 

I'm having trouble making a KPI which indicates 'this weeks sales' agaisnt the target 'average weekly sales'.

 

While the average weekly sales measure calculates correctly OUTSIDE of the KPI card, when using it within the KPI card, it seems to be filtered to 'this weeks sales' only (resulting in both values being the same).

 

  • WEEK_NUM | SALES
    • 1 | £100
    • 2 | £150
    • 3 | £100
    • 4 | £200
    • 5 | £70

 

As an example, a KPI card of above should show £70 (goal: £124 (x%) )

Whereas I am getting: £70 (goal: £70 (0%) )

 

Where am I going wrong? I feel like this is something that should be really simple to fix.

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Reigning_data

 

You may try to use below measure to get the average weekly sales. KPI get the last values of WEEK_NUM column.

Weekly =
AVERAGEX ( ALL ( Table1 ), Table1[SALES] )

1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @Reigning_data

 

You may try to use below measure to get the average weekly sales. KPI get the last values of WEEK_NUM column.

Weekly =
AVERAGEX ( ALL ( Table1 ), Table1[SALES] )

1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.