Forum Discussion

perib's avatar
perib
New Member
3 years ago
Solved

Show status based on date columns

Hello! I'm new to Power BI and I have no idea how to proceed. I have multiple columns with dates. I need to show a status column based on the latest date available. Here is an example:

 

TitleTasker expirationDate Received ReviewedSent for approvalDate ApprovedActuals due byStatus
Event #111/28/202212/1/202212/2/2022   Under review
Event #212/12/2022     Not received
Event #311/28/202212/1/202212/5/202212/10/2022  Awaiting approval
Event #411/29/202212/1/202212/5/202212/10/2022  Awaiting approval
Event #511/30/202212/1/202212/7/2022   Under review
Event #612/1/202212/5/2022    Under review
Event #712/2/2022      

 

Thank you in advance!

  • Please check attached pbix for more details.

    https://dropmefiles.com/SPbuD

    status_f =
    IF (
        NOT ISBLANK ( 'tbl'[Actuals due by] ),
        "Actuals",
        IF (
            NOT ISBLANK ( 'tbl'[Date Approved] ),
            "Approved",
            IF (
                NOT ISBLANK ( 'tbl'[Sent for approval] ),
                "Awaiting approval",
                IF (
                    NOT ISBLANK ( 'tbl'[ Reviewed] ),
                    "Under review",
                    IF ( NOT ISBLANK ( 'tbl'[Date Received] ), "Under review", "Not received" )
                )
            )
        )
    )

1 Reply

  • Please check attached pbix for more details.

    https://dropmefiles.com/SPbuD

    status_f =
    IF (
        NOT ISBLANK ( 'tbl'[Actuals due by] ),
        "Actuals",
        IF (
            NOT ISBLANK ( 'tbl'[Date Approved] ),
            "Approved",
            IF (
                NOT ISBLANK ( 'tbl'[Sent for approval] ),
                "Awaiting approval",
                IF (
                    NOT ISBLANK ( 'tbl'[ Reviewed] ),
                    "Under review",
                    IF ( NOT ISBLANK ( 'tbl'[Date Received] ), "Under review", "Not received" )
                )
            )
        )
    )