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
Oomsen
Helper III
Helper III

Measure delivery on time

I would like to create a measure which gives me a % deliveries on time.

 

My data:

Order                Planned                 Delivered                 Differences

60004                29-01-2019           18-01-2019              -11

60005                22-01-2019           22-01-2019             0 

60006                12-02-2019           14-02-2019             2

60007                01-03-2019           15-03-2019             14

 

My expectation is that 25% is delivered to early, 25% on time and 50% to late. 

Extra detail is that ordernumber and planned date are from the same table but delivered date is from a different table. 

1 ACCEPTED SOLUTION

Hi @Oomsen 

Based on my test,my formula could work.Could you show some screenshot or more details so that we could help further on it?

Regards,

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

5 REPLIES 5
v-cherch-msft
Employee
Employee

Hi @Oomsen 

You may try below measures:

early =
COUNTROWS ( FILTER ( Table1, [Differences] < 0 ) )
    / COUNTROWS ( Table1 )
On time =
COUNTROWS ( FILTER ( Table1, [Differences] = 0 ) )
    / COUNTROWS ( Table1 )
late =
COUNTROWS ( FILTER ( Table1, [Differences] >0 ) )
    / COUNTROWS ( Table1 )

Regards,

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.

[Differences] is a measure so this doesn't work unfortunately. 

Hi @Oomsen 

Based on my test,my formula could work.Could you show some screenshot or more details so that we could help further on it?

Regards,

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.
Mariusz
Community Champion
Community Champion

Hi @Oomsen 

You can use the expresion below.

 

YourMeasure = 
DIVIDE(
    CALCULATE(
        COUNT(YourTable[Order]),
        YourTable[Differences] = 0
    ),
    COUNT(YourTable[Order])
)


Hope this helps
Mariusz

Thank you for the respons. 

It doesn't work. Maybe because "YourTable[Differences]" is a measure in my report. 

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.