skip to main content
Power BI
    • What is Power BI
    • Why Power BI
    • Customer stories
    • Data visuals
    • Security
    • Power BI Desktop
    • Power BI Pro
    • Power BI Premium
    • Power BI Mobile
    • Power BI Embedded
    • Power BI Report Server
  • Pricing
    • Azure + Power BI
    • Microsoft 365 + Power BI
    • Dynamics 365 + Power BI
      • Energy
      • Healthcare
      • Manufacturing
      • Media
      • Retail
    • For analysts
    • For IT
      • Overview
      • Embedded analytics
      • Power BI visuals
      • Automation
      • Documentation
      • Community
    • Partners Overview
    • Solutions Partners
    • BI Specialized Partners
    • Power BI CSOs
    • Fabric Partner Community
    • Training
    • Getting started
      • Overview
      • Self-guided learning
      • Webinars
      • Documentation
      • Roadmap
      • Overview
      • Issues
      • Give feedback
    • Blog
    • Business intelligence topics
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • Events
    • User groups
    • Community blog
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power BI forums
    • Updates
    • News & Announcements
    • Get Help with Power BI
    • Desktop
    • Service
    • Report Server
    • Power Query
    • Mobile Apps
    • Developer
    • DAX Commands and Tips
    • Custom Visuals Development Discussion
    • Health and Life Sciences
    • Power BI Spanish forums
    • Translated Spanish Desktop
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Training and Consulting
    • Instructor Led Training
    • Galleries
    • Community Connections & How-To Videos
    • COVID-19 Data Stories Gallery
    • Themes Gallery
    • Data Stories Gallery
    • R Script Showcase
    • Webinars and Video Gallery
    • Quick Measures Gallery
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Events
    • Ideas
    • Custom Visuals Ideas
    • Issues
    • Issues
    • Events
    • Upcoming Events
    • Community Engagement
    • T-Shirt Design Challenge 2023
    • Community Blog
    • Power BI Community Blog
    • Custom Visuals Community Blog
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 

    Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

    • Power BI forums
    • Galleries
    • Data Stories Gallery
    • Re: OTIF Report

    Re: OTIF Report

    12-06-2021 13:38 PM

    Anonymous
    Not applicable
    11359 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    Andy100Rob
    Andy100Rob Advocate II
    Advocate II
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    OTIF Report

    ‎12-29-2019 12:07 PM

    The report was designed to showcase the On Time In Full (OTIF) status of all orders for the past two years.

    Each shipment is assessed on two criteria:

    1) If the full quantity was shipped

    2) If the order was shipped on the Due Date

     

    The report has an Allowable Window, where a Customer might be able to accept shipments upto sixty day early or late.

     

    Once a user has selected the Allowable Window, the

    rest of the report will use this window to calculate the OTIF status.

     

    The Trend Buttons allow users to investigate through the report without having to leave the report page and keeping any applied filters.

     

    The Columns, Parameters and DAX:
    There is one additional column, two parameters and a host of measures.  

     

    Days - the only column
    The data has columns Due Date and Ship Date, therefore we can use DATEDIFF to calculate the difference in the two dates. I use a column for this.

    Days = DATEDIFF( OTIF[Ship Date], OTIF[Due Date], DAY )
     
    Early and Late Windows - the two parameters

    The Early and Late Parameters are set up as Whole Number, and they automatically generate measures: Early Value and Late Value. We use these as the allowable window.

     

    The Measures


    In Full
    If an order has not been fully delivered then the order must be late, so we can work out the completeness of the order using a measure to compare the Order Qty and the Delivered Qty:
    In Full =
    IF(
      SUM(OTIF[Order Qty]) = SUM(OTIF[Delivered Qty]),
        "In Full", "Partial"
      )

     

    With these three pieces of information we can work out if an order was delivered In Full and On Time, including any user entered Allowable Window:

     

    On Time Shipment
    To count as an on time shipment, the order must be In Full and the days difference must be less than the allowable early and the allowable late. We will count the number of rows on the OTIF table to fit these criteria.

     

    On-Time Shipments =
    CALCULATE(
      COUNTROWS( OTIF ),
        FILTER( OTIF,
          Early[Early Value] >= OTIF[Days] &&
          (-Late[Late Value]) <= OTIF[Days] &&
          [In Full] = "In Full"
    )
    )

     

    Early Shipments

    These are one criteria easier than On Time, if the Days is greater than the allowable early and it's In Full, then the shipment was early:

    Early Shipments =
    CALCULATE(
      COUNTROWS( OTIF ),
        FILTER( OTIF,
          OTIF[Days] > Early[Early Value] &&
          [In Full] = "In Full"
    )
    )
     
    Late Shipments
    The late shipment involves an extra criteria to check tha tthe order qty has been fully shipped. If the order was shipped after the due date OR the order is partial, then it will be counted as Late:
    Late Shipments =
      CALCULATE(
        COUNTROWS( OTIF ),
          FILTER( OTIF,
            OTIF[Days] < -Late[Late Value] ||
            OTIF[In Full] = "Partial"
          )
      )

    OTIF Graph
    The OTIF graph is made up using the Date heirarchy from the Date table and then adding the three measures as values

    Status
    Now that the data has been assessed, we can report back the Status of each individual row, with another measure:
    Status =
    IF(
      COUNTROWS( OTIF ) >0,
        IF( [Early Shipments] >0, "Early",
        IF( [Late Shipments] >0, "Late",
        "On-Time")
        )
      )

     

     

    eyJrIjoiNmIwYjAxZmEtMzE4OC00MDExLTlhYjAtM2FiMmMyMWQxNzUxIiwidCI6ImM3ZWE5NDI0LWNkZWMtNGE5Zi1iYzljLWE3MDkwOTMwNjk0NCJ9

    Preview file
    210 KB
    Labels:
    • Labels:
    • Bookmarking
    • Business
    Message 1 of 20
    15,286 Views
    5
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    NBW
    NBW
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎10-11-2023 02:58 AM

    Hi, 

    I would like to know the DAX for STATUS part.

    how do you use allowable window value.

    Message 20 of 20
    1,023 Views
    0
    Reply
    rinaredelinghuy
    rinaredelinghuy Helper I
    Helper I
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎09-22-2023 05:50 AM

    Hi, please share the report with me?

     

    Message 19 of 20
    1,401 Views
    0
    Reply
    KK303
    KK303
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎08-30-2023 11:29 AM

    Can I get a copy of this template?

    Message 18 of 20
    1,818 Views
    0
    Reply
    Power_rookie
    Power_rookie
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎08-22-2023 05:41 AM

    hello, is it possible if i could have a copy of the report please so i can understand it better.

    Message 17 of 20
    1,945 Views
    0
    Reply
    IngénieurSupply
    IngénieurSupply
    Regular Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎07-27-2023 12:39 AM

    Can I have the report please ? I have a project to show OTIF Performance and I need it !

    Thank you !

    Message 16 of 20
    2,390 Views
    0
    Reply
    dogburalHK82
    dogburalHK82 Helper II
    Helper II
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎05-16-2023 08:02 PM

    @Andy100Rob looks so great, wonder if I can have a copy of the report. 

    Message 15 of 20
    3,575 Views
    0
    Reply
    jurkowskij
    jurkowskij
    Frequent Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-25-2023 07:41 AM

    Hi,

    Great report. Gave me some ideas to implement in my organization

     

    Question: How to create this "mini windowed" visualizations like below?

    It's some kind of use of drill trought?

     

    jurkowskij_0-1682433320335.png

     

    Message 13 of 20
    3,995 Views
    0
    Reply
    Andy100Rob
    Andy100Rob Advocate II
    Advocate II
    In response to jurkowskij
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-25-2023 07:57 AM

    That's a Tooltip page. 

    The page only has that graph on it. You just need to add a new page, set it as a Tool tip and then from the original graph, you can choose to use the specific tool tip page.

    Message 14 of 20
    3,992 Views
    1
    Reply
    Andymatt1808
    Andymatt1808
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎11-30-2022 01:31 PM

    Hi Andy100Rob, thanks for sharing and I've spent a lot of time trying to achieve a new OTIF report at work that unfortunately, does not look anywhere near as nice as the one you have created. 

    Can I be cheeky and ask if you could share the file with me so I can try and use it for my data?

    Thanks a million

    Message 12 of 20
    6,009 Views
    0
    Reply
    Ugochukwu
    Ugochukwu
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎11-19-2022 06:29 AM

    Can you please share dataset for the dashboard, I will like to use it for some other portfolio project

     

    Thanks 

    Message 11 of 20
    6,212 Views
    0
    Reply
    Nikita_1990
    Nikita_1990
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎10-17-2022 02:17 AM

    This is indeed very helpful. I could complete my OTD report in couple of hours with above mentioned reference Dax. Interested in seeing more KPIs like these related to supply chain..

    Message 10 of 20
    6,828 Views
    0
    Reply
    Anonymous
    Not applicable
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎12-06-2021 01:38 PM

    Hello,

     

    Sorry, I'm new here.

     

    I love this and it's perfect for what I'd like to use, is it possible to download it with the data so I can use it, or is this protected?

     

    Sorry for the dim question, I'm new to Power BI.

     

    Thanks again

     

     

     

    Message 9 of 20
    11,359 Views
    0
    Reply
    cneri17
    cneri17
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎05-14-2021 10:01 AM

    Great report. I was having a hard time trying to desing an OTIF report for my organization until I came accross this post. Thanks for sharing! 

    Message 8 of 20
    13,173 Views
    0
    Reply
    WitoldA
    WitoldA
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-18-2021 11:06 PM

    I'm stil interested in getting the report...

    Message 7 of 20
    13,398 Views
    0
    Reply
    Anonymous
    Not applicable
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎03-18-2021 01:29 AM

    Hi Andy100Rob,

     

    Am i able to get a complete copy of this report, or other examples, is it free or can it be purchased.  I have been asked to do a similar report for my company, however i am a very new Power Bi User, so i need some guidance, i was more of an Excel user in the past, however very excited to start using Power BI.

     

    Message 5 of 20
    13,740 Views
    0
    Reply
    Andy100Rob
    Andy100Rob Advocate II
    Advocate II
    In response to Anonymous
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-18-2021 11:36 AM

    I've put the DAX up, if you still wanted the report

    Message 6 of 20
    13,452 Views
    0
    Reply
    WitoldA
    WitoldA
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎09-04-2020 12:54 AM

    Hi,

     

    My company is interested in getting your report - could you tell me hwo it would be possible ? What is the price for it including possibility of further edition ?

     

    Regards

     

    Witold Adamiak

    Message 2 of 20
    14,611 Views
    0
    Reply
    Andy100Rob
    Andy100Rob Advocate II
    Advocate II
    In response to WitoldA
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-18-2021 11:36 AM

    I've put the DAX up, if you still wanted it.

    Message 3 of 20
    13,452 Views
    0
    Reply
    Anonymous
    Not applicable
    In response to Andy100Rob
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-18-2021 02:07 PM

    Sorry, they have still not made a decision

     

    Message 4 of 20
    13,416 Views
    0
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Pages
    • Power Automate
    • Power Virtual Agents

    • Sign in
    • Sign up

    Browse

    • Solutions
    • Partners
    • Consulting Services

    Downloads

    • Power BI Desktop
    • Power BI Mobile
    • Power BI Report Server
    • See all downloads

    Learn

    • Guided learning
    • Documentation
    • Support
    • Community
    • Give feedback
    • Webinars
    • Developers
    • Blog
    • Newsletter

    © 2023 Microsoft

    Follow Power BI

    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks
    Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices