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
Yashh
Helper II
Helper II

Supplier Date reilablity

Hello all,

I am working on Supplier Reliablity Dashboard for Quantity and on time delivery. But I am stuck on a point with the date reliablity. 

 

Yashh_0-1680089786923.png

In this sample data set we have the supplier, GR date, Scheduled date and Static Delivery date. 

  • GR date is the date when the material is recivend in the Plant. 
  • Scheduled Date is when it is expected in the plant.
  • Static delivery Date is the date when supplier says he will deliver.

I have to calcualte the date reliablity rate in perecent for supplier.

Like if the delivery is 0 days late it is 100%

if 1 day late it is 80%

if 2 days late it is 60%

if 3 days late it is 40%

if 4 days late it is 20%

if 5 days late it is 1%

and more then 5 days it is also 1%

 

And if the delivery is early then it should show 100%.

 

 

@Ahmedx  Please help

 

 

 

3 REPLIES 3
Ahmedx
Super User
Super User

I do not understand. you explain here what percentage will be, and why?

Screen Capture #770.png

Hello @Ahmedx 

 

I want to do supplier rating on the delivery date. So as you showed the example the GR date and Static delivery Date are different and i want to calculate it on the basis of this two days only. 

 

BR

Yashh

Measure = 
VAR _Days = DATEDIFF('table'[GR date],'table'[Static Delivery date],DAY)
RETURN
SWITCH(_Days,0, 1,1,0.80,2,0.6,3,0.4,4,0.2,0.01)

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.