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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Medo
Frequent Visitor

Get the MIN dates from two dates tables

Hello folks, hope you all doing great!!

I need a little help with below if someone can))

I have two dates table and I want to get the MIN between them to use it in a slicer.

Background of the issue: I have two tables dates columns and some data, there is a calculation running on both data tables to DIVIDE some values between those tables, the problem is the data entry happens in in different dates and the period is unknown ( manual entry), so I can't use IF date less than 3 days for example to slice, that cuz the calculation to become zeros.

I want my calculation only runs and show data if there is a data in both tables in the same dates
For example: 

Prod (first table)Loss ( in second table)MIN 
14/03/202220/03/202214/03/2022
20/03/202220/03/202220/03/2022
20/03/202214/03/202214/03/2022
14/03/202214/03/202214/03/2022


how can I get the MIN date column ?

Thanks in advance for your help. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Medo ,

Please try below steps:

1.add a index column to two table in Power Query, and then create a mode

vbinbinyumsft_0-1659084715762.png

 

2.add a new column “Loss_Table2” in Table

 

Loss_Table2 = RELATED('Table (2)'[Loss])

 

vbinbinyumsft_1-1659084747508.png


3.add a new column “Min_Date” to get the min date between “Prod” and “Loss_table2”

 

Min_Date = Min('Table'[Prod],'Table'[Loss_Table2])

 

vbinbinyumsft_2-1659084780642.png

 

Best regards,
Community Support Team_ Binbin Yu
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

2 REPLIES 2
Anonymous
Not applicable

Hi @Medo ,

Please try below steps:

1.add a index column to two table in Power Query, and then create a mode

vbinbinyumsft_0-1659084715762.png

 

2.add a new column “Loss_Table2” in Table

 

Loss_Table2 = RELATED('Table (2)'[Loss])

 

vbinbinyumsft_1-1659084747508.png


3.add a new column “Min_Date” to get the min date between “Prod” and “Loss_table2”

 

Min_Date = Min('Table'[Prod],'Table'[Loss_Table2])

 

vbinbinyumsft_2-1659084780642.png

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Medo , a new column

 

Date new = Min([Date1], [Date2])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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