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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bmdailey
Regular Visitor

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 examples below (*includes Current State & Desired State), I would like to introduce logic/condtion that can accomplish the Desired State in the attachment. In order to get to the desired state I need to introduce Date MIN/MAX, however I need the Date MIN/MAX to use the following logic:

 

MIN/MAX Start/Finish Dates by unique Department & associated unique release.

 

The goal is to roll up the dollar values at unique Department & unique Release and display the MIN Start Date & MAX Finish Date. Please let me know if any clarification is needed. 

 

Thanks

ByronPowerBI_Future.jpg

 

 

 

1 ACCEPTED SOLUTION

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 tablesample 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] )
)

2.PNG

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

3.PNG

Best Regards,
Angelia

View solution in original post

4 REPLIES 4
erik_tarnvik
Solution Specialist
Solution Specialist

If I understand your challenge correctly this is actually super simple to achieve. Import your current state data. Make sure the data types come out correctly. Create a table visual and drop all your columns in the Values in desired order. Then use the drop-down menu for each of the columns in the Values bucket (see pic below)  of the visual to choose the appropriate aggregation for Budget, Actual, Variance, and the dates (MAX/MIN).

 

image.png

Erik, thanks for the suggestion. I believe I've tried this method and had an issue with repetitive lines (*opposed to the value roll up by Department, Release). It's been some time ago so I will give it a shot and let you what I find out.

 

Thanks again for the suggestion....results to follow

 

Byron

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 tablesample 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] )
)

2.PNG

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

3.PNG

Best Regards,
Angelia

Sure thing. BTW that's what the aggregration is for, to avoid repetitive lines and instead get a sum, an average, a min or max etc. Good luck, let us know how it goes.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors