Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
perib
New Member

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!

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

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" )
            )
        )
    )
)

View solution in original post

1 REPLY 1
Ahmedx
Super User
Super User

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" )
            )
        )
    )
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.