Forum Discussion

bmdailey's avatar
bmdailey
Regular Visitor
8 years ago
Solved

MIN/MAX Date Based on Column with Multiple Lines

Hello, I have a Project Report that I am having to manually manipulate in order to roll up the dollar values because of multiple START & FINISH dates within a Project Release.   Based on the exampl...
  • v-huizhn-msft's avatar
    v-huizhn-msft
    8 years ago

    Hi bmdailey,

    Based on your description, I assume your resource sample data is the same. Because your sample table is shown in screenshot, I can't copy, so I typed some part of it for reference. 

    sample table

    Then click "New Table" under Modeling on home page. Type the following formula and you will get the table below.

    NewTable =
    SUMMARIZE (
        Test,
        Test[Department],
        Test[Release],
        "Budget", SUM ( Test[Budget] ),
        "Actual", SUM ( Test[Actual] ),
        "Variance", SUM ( Test[Variance] ),
        "Start Date", MIN ( Test[Start Date] ),
        "Finish Date", MAX ( Test[Finish Date] )
    )
    



    Finally, you can create a table visual, select all the columns to display as follows.



    Best Regards,
    Angelia