cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerBITestingG
Helper II
Helper II

Max date of column based on 2 columns

Hi all,

 

Got 3 columns and I need to a new column that returns the max of Date that is between Max Fiscal Date and Min Fiscal date. Any ideas?

 

Date   Max Fiscal Date  Min Fiscal Date   New Max Date
14/09/22   28/09/22    1/09/22    14/09/22
14/10/22   30/10/22    29/10/22    18/10/22
18/10/22 30/10/22 29/10/22   18/10/22

 

 

Thank you

 

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

Hi PowerTestingG

 

Please consider this solution.

 

When I have helped you, please help me with kudos.

Click the thumbs up if you like me trying to help you.

And click Accept As Solution if I have fixed your problem.

One problem per ticket please.
If you need to expand or change your problem then please accept this solution and raise a new ticket.

 
New max date =
CALCULATE(
MAX('Table'[Date]),
ALLEXCEPT('Table','Table'[Min Fiscal Date])
)
 
speedramps_0-1651595925432.png

 

 

 

View solution in original post

1 REPLY 1
speedramps
Super User
Super User

Hi PowerTestingG

 

Please consider this solution.

 

When I have helped you, please help me with kudos.

Click the thumbs up if you like me trying to help you.

And click Accept As Solution if I have fixed your problem.

One problem per ticket please.
If you need to expand or change your problem then please accept this solution and raise a new ticket.

 
New max date =
CALCULATE(
MAX('Table'[Date]),
ALLEXCEPT('Table','Table'[Min Fiscal Date])
)
 
speedramps_0-1651595925432.png

 

 

 

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors