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
krixtsup3r
Helper V
Helper V

Flexible Scoring

Hello,

 

Can someone help me creating a flexible scoring measure? 

 

- The data will be summarized by Supervisor.

- There's a date filter to show different coverages

- Handle time will be computed as (Worked Hours*3600)/Units

- Counts how many employee passed the target for Units & Worked Hours

- The target for Units & Worked Hours is the average of the metric

 

Below is the sample data. Thank you so much for your help!

 

DateIDEmployee NameSupervisorUnitsWorked Hours
1/1/20204622Chelsey SweeneySolomon Hoffman7258119.5039
1/1/20203965Chanel PateDorian Rivas7149100.7825
1/1/20205313Matylda MuirSamiya Leonard7042113.0294
1/2/20206599Neha WeeksKonrad Vasquez7031155.2603
1/1/20205664Reeva HumphreysAria Campos703096.31583
1/2/20201805Jordi RothKeanu Ingram702687.44667
1/3/20202615Jace HewittSammy-Jo Newton6885175.0389
1/4/20203359Nur RhodesHanifa Mendez6744117.8289
1/3/20201361Antoinette FrancoSolomon Hoffman6542166.8425
1/3/20202327Emmy WilderDorian Rivas6510149.8561
1/4/20204032Brogan FloydSamiya Leonard633172.52278
1/5/20201172Niko KnottKonrad Vasquez629080.66
1/5/20205375Lori GarciaAria Campos607063.77194
1/5/20205811Courteney McnamaraKeanu Ingram587186.25472
1/6/20201925Boyd MuellerSammy-Jo Newton5867118.6203
1/6/20206602Sophia-Rose GilmoreHanifa Mendez576170.82778
1/7/20206784Roger WhyteEverly Calderon573887.44472
1/8/20204693Cherry HansonAkaash Lake5722156.1253
1/8/20202012Lucille PhelpsSamiya Leonard5648118.0678

 

Sample Expected Output:

**All of the data below will change based on the selected date range

 

Average Unit6448.16
Average Handle Time112.43

 

Row LabelsPass Unit?Pass Handle Time?Total Employee
Akaash Lake011
Aria Campos10

2

Dorian Rivas21

2

Everly Calderon00

1

Hanifa Mendez11

2

Keanu Ingram10

2

Konrad Vasquez11

2

Samiya Leonard12

3

Sammy-Jo Newton12

2

Solomon Hoffman22

2

Total1010

19

 

 

1 ACCEPTED SOLUTION

I did some data modeling. Please download the file from same location and try.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

Please find the solution at : https://www.dropbox.com/s/2jb62pmfcy4ea5k/Flexible-Scoring.pbix?dl=0

Screenshot 2020-01-28 07.41.17.png

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

@amitchandak 

 

Thank you so much!

 

I have tried the solution you have given and it's was fine, though when I applied it to my actual data it doesn't get what I wanted. I think my explanation was bad, my apologies about it. 

 

In lieu with that please see this link https://www.dropbox.com/scl/fi/vcj58m3lcxw7qyyytsgw7/data_new.xlsx?dl=0&rlkey=gxtgucrt0qrtt3s3s54nkv... for the excel file to what I really want to happen (column G-H) and how I want it to work. 

 

Again my apologies and thank you for your support.

 

 

I think if the issue with the filter applied. This what you need to do. As we are using a simple table to get the overall average, we are forced take all of that table means the filter will not apply. Now create a date table and join with your date. Also, create an employee and Supervisor, using summarize of distinct and try. That should help.

I did some data modeling. Please download the file from same location and try.

Thank you!

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.