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
bbajuscak
Regular Visitor

Next Deliverable for Multiple Projects

Need assistance:

I have a listing of projects, each project has multiple deliverables with dates associated with each. How can I isolate the next deliverable  and associated date for each project?  This needs to allow for updates as we move forward to continually show the next deliverable. The ONE deliverable scheduled closest to the current date moving forward for each project

 

Any help is greatly appreciated!

 

Example data:

 

ProjectDeliverableDelivery Date
Ax12/12/2024
Ay12/31/2024
Ax1/15/2025
A1/30/2025
Bk12/14/2024
Bk12/27/2024
Bj1/10/2025
Cr12/18/2024
Cs12/30/2024
Ct1/9/2025
Cu1/12/2025

 

I need to show:

ProjectDeliverableDelivery Date
Ax12/12/2024
Bk12/14/2024
Cr12/18/2024
3 ACCEPTED SOLUTIONS
Irwan
Super User
Super User

hello @bbajuscak 

 

you can do this in two ways, SUMMARIZE table and measure.

SUMMARIZE Table : 

- create a new table with following DAX

Summarize = 
SUMMARIZE(
    ADDCOLUMNS(
        'Table',
        "Min Date",
        MINX(
            FILTER(
                'Table',
                'Table'[Project]=EARLIER('Table'[Project])
            ),
            'Table'[Delivery Date]
        )
    ),
    'Table'[Project],
    [Min Date],
    "Min Deliverable",
    MINX(
        FILTER(
            'Table',
            'Table'[Delivery Date]=[Min Date]
        ),
        'Table'[Deliverable]
    )
)
Irwan_0-1733442075606.png

 

Measure : 
- create a new measure with following DAX for looking the minimum date for each Project
Min Date =
MINX(
    FILTER(
        'Table',
        'Table'[Project]='Table'[Project]
    ),
    'Table'[Delivery Date]
)
- create another new measure with following DAX for looking Deliverable in that minimum date
Min Deliverable =
var _Date = [Min Date]
Return
MINX(
    FILTER(
        'Table',
        'Table'[Delivery Date]=_Date
    ),
    'Table'[Deliverable]
)
- Plot Project, Min Date (previously created measure), and Min Deliverable (previously created measure) in Table visual
Irwan_1-1733442240427.png

 

Hope this will help.
Thank you.

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1733442868547.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

v-rzhou-msft
Community Support
Community Support

Hi @bbajuscak ,

 

I think you can create a measure and add it into visual level filter and set it to show items when value = 1.

Check Whether Closest Deliverable Each Project =
VAR _Closest_Deliverable_Each_Project =
    CALCULATE (
        MIN ( Data[Delivery Date] ),
        FILTER ( ALLEXCEPT ( Data, Data[Project] ), Data[Delivery Date] > TODAY () )
    )
RETURN
    IF ( MAX ( Data[Delivery Date] ) = _Closest_Deliverable_Each_Project, 1, 0 )

Result is as below.

vrzhoumsft_0-1733473760630.png

 

Best Regards,
Rico Zhou

 

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-rzhou-msft
Community Support
Community Support

Hi @bbajuscak ,

 

I think you can create a measure and add it into visual level filter and set it to show items when value = 1.

Check Whether Closest Deliverable Each Project =
VAR _Closest_Deliverable_Each_Project =
    CALCULATE (
        MIN ( Data[Delivery Date] ),
        FILTER ( ALLEXCEPT ( Data, Data[Project] ), Data[Delivery Date] > TODAY () )
    )
RETURN
    IF ( MAX ( Data[Delivery Date] ) = _Closest_Deliverable_Each_Project, 1, 0 )

Result is as below.

vrzhoumsft_0-1733473760630.png

 

Best Regards,
Rico Zhou

 

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

 

Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1733442868547.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Irwan
Super User
Super User

hello @bbajuscak 

 

you can do this in two ways, SUMMARIZE table and measure.

SUMMARIZE Table : 

- create a new table with following DAX

Summarize = 
SUMMARIZE(
    ADDCOLUMNS(
        'Table',
        "Min Date",
        MINX(
            FILTER(
                'Table',
                'Table'[Project]=EARLIER('Table'[Project])
            ),
            'Table'[Delivery Date]
        )
    ),
    'Table'[Project],
    [Min Date],
    "Min Deliverable",
    MINX(
        FILTER(
            'Table',
            'Table'[Delivery Date]=[Min Date]
        ),
        'Table'[Deliverable]
    )
)
Irwan_0-1733442075606.png

 

Measure : 
- create a new measure with following DAX for looking the minimum date for each Project
Min Date =
MINX(
    FILTER(
        'Table',
        'Table'[Project]='Table'[Project]
    ),
    'Table'[Delivery Date]
)
- create another new measure with following DAX for looking Deliverable in that minimum date
Min Deliverable =
var _Date = [Min Date]
Return
MINX(
    FILTER(
        'Table',
        'Table'[Delivery Date]=_Date
    ),
    'Table'[Deliverable]
)
- Plot Project, Min Date (previously created measure), and Min Deliverable (previously created measure) in Table visual
Irwan_1-1733442240427.png

 

Hope this will help.
Thank you.

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! Prices go up Feb. 11th.

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.