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

Create a Performance Score based on Monthly Total AND Yearly Average

Hello PBI Community!  Novice PBI/DAX user here humbly seeking assistance.

I'm trying to add a SCORING assessment for this KPI based on monthly date bins and yearly average score.

I have several KPIs I need to provide scoring assessments for, so am hoping for a scaleable solution 🙂

Any ideas appreciated.

 

Here is a sample of what I am receiving. I've circled SOME of the values that should be either Successful or Outstanding:

 

Snippet of PBI Report

sample 1.jpg

Here is the measure that calculates Avg Calls / AE (Person) / Month which is referenced in the IF statement.

 

Avg Calls / AE / Month Calculation

sample 2.jpg

 

WHAT I TRIED

I created a NEW TABLE (New Opportunities Created - SUMMARIZED TABLE) from the original table which contains row level detail (New Opportunities Created).

 

Then I created a new column to calculate SCORE:

 

 

 

Score = SWITCH(TRUE(),
'New Opportunities Created - SUMMARIZED TABLE'[Segment] IN {"Field Sales", "LTL"} && 'New Opportunities Created - SUMMARIZED TABLE'[#Opps]<3.5, "NI",
'New Opportunities Created - SUMMARIZED TABLE'[Segment] IN {"Field Sales", "LTL"} && 'New Opportunities Created - SUMMARIZED TABLE'[#Opps]>4.3, "Exceeds", "Meets"
)

 

 

 

Below is the result.

It works at the MONTHLY level, however, it is not working for the COLUMN and ROW TOTALS.

 

sample 3.jpg

 

I should add that I do have some data filters as well:

sample 4.jpg

 

AND for the FINAL piece!  I need to provide a summary at the Manager level, which is based on the TOTAL YEARLY AVERAGE ("Total #Opps" column)

sample 6.jpg

1 REPLY 1
lbendlin
Super User
Super User

Kudos for the detailed explanation. What you have in front of you is a nice introduction to filter context. Read about the different ways measures are calculated, read about aggregator functions like SUMX and then try stuff out.   One of the guiding principles in DAX  (especially for matrix visuals) is "Think like the Grand Total."  That way your measure can handle all scenarios.

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.