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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PowerBITestingG
Advocate II
Advocate 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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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