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
PBInewbie17
Helper I
Helper I

Processing Status Based on Multiple Dates

PBInewbie17_2-1660864016421.png

I want to add a calculated column called Processing Status (column in blue is desired result). Every staff member has 30 days to process a project, but if the project is missing relevant information, the assigned staff can suspend processing (i.e., put it on hold) until further information is received. Once the required data is received, staff can resume processing (Date Processing Resumed) and perform their review.

 

If a project has all required information and doesn’t need to be suspended, then total days in processing is the difference between the Date Completed and Date Assigned. If a project must be suspended, then total processing days equals [(Date Processing Suspended – Date Assigned) + (Date Completed – Date Processing Resumed)].

 

Here are the 5 statuses I need to calculate:

 

  • Incomplete = Missing data in system (see yellow highlighted fields). Indicates staff forgot to input data in system
  • On Time = Project complete and within 30-day timeframe
  • Missed Deadline = Project complete but past 30-day timeframe
  • In Processing = Project incomplete but within 30-day timeframe
  • Overdue = Project incomplete and past 30-day timeframe

Thank you for your assistance.

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @PBInewbie17 ,

I have created a simple sample, please refer to it to see if it helps you.

Create a measure.

Measure =
IF (
    MAX ( 'Table'[days in processing] ) > 30
        && MAX ( 'Table'[date completed] ) = BLANK (),
    "Overdue",
    IF (
        MAX ( 'Table'[days in processing] ) > 30
            && MAX ( 'Table'[date completed] ) <> BLANK (),
        "Missed deading",
        IF (
            MAX ( 'Table'[date completed] ) = BLANK ()
                && MAX ( 'Table'[days in processing] ) <= 30
                && MAX ( 'Table'[date due] ) >= TODAY (),
            "In progressing",
            IF (
                MAX ( 'Table'[days in processing] ) <= 30
                    && MAX ( 'Table'[decision ] ) <> BLANK ()
                    && MAX ( 'Table'[date completed] ) <> BLANK ()
                    && MAX ( 'Table'[date processing resumed] ) = BLANK (),
                "On time",
                "Incomplete"
            )
        )
    )
)

vpollymsft_0-1661235379524.png

If I have misunderstood your meaning, please provide more details with your desired output.

 

Best Regards

Community Support Team _ Polly

 

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

3 REPLIES 3
v-rongtiep-msft
Community Support
Community Support

Hi @PBInewbie17 ,

I have created a simple sample, please refer to it to see if it helps you.

Create a measure.

Measure =
IF (
    MAX ( 'Table'[days in processing] ) > 30
        && MAX ( 'Table'[date completed] ) = BLANK (),
    "Overdue",
    IF (
        MAX ( 'Table'[days in processing] ) > 30
            && MAX ( 'Table'[date completed] ) <> BLANK (),
        "Missed deading",
        IF (
            MAX ( 'Table'[date completed] ) = BLANK ()
                && MAX ( 'Table'[days in processing] ) <= 30
                && MAX ( 'Table'[date due] ) >= TODAY (),
            "In progressing",
            IF (
                MAX ( 'Table'[days in processing] ) <= 30
                    && MAX ( 'Table'[decision ] ) <> BLANK ()
                    && MAX ( 'Table'[date completed] ) <> BLANK ()
                    && MAX ( 'Table'[date processing resumed] ) = BLANK (),
                "On time",
                "Incomplete"
            )
        )
    )
)

vpollymsft_0-1661235379524.png

If I have misunderstood your meaning, please provide more details with your desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That worked! Thank you so much.

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.

Top Solution Authors