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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Bansi008
Helper III
Helper III

How to calculate minimum date based security column.

Hi there,

Can someone please help me here to calculate the minimum date in a separate column based on the security column. 

 

sample input data:- 

SECURITYDATE
Amazone6/30/2024
Flipkart6/30/2024
Myntra6/30/2024
Ajio6/30/2024
Alibaba6/30/2024
Flipkart3/31/2024
Amazone3/31/2024
Myntra3/31/2024
Alibaba3/31/2024
Ajio3/31/2024

 

Expected output:- 

SECURITYDATEMIN_DATE
Amazone6/30/20243/31/2024
Flipkart6/30/20243/31/2024
Myntra6/30/20243/31/2024
Ajio6/30/20243/31/2024
Alibaba6/30/20243/31/2024
Flipkart3/31/20243/31/2024
Amazone3/31/20243/31/2024
Myntra3/31/20243/31/2024
Alibaba3/31/20243/31/2024
Ajio3/31/20243/31/2024
1 ACCEPTED SOLUTION
Irwan
Super User
Super User

hello @Bansi008 

 

please check if this accomodate your need.

MIN_DATE =
MINX(
    FILTER(
        'Table',
        'Table'[SECURITY]='Table'[SECURITY]&&
        'Table'[DATE]<=EARLIER('Table'[DATE])
    ),
    'Table'[DATE]
)

Irwan_0-1721332220578.png

 

Hope this will help you.

Thank you

View solution in original post

3 REPLIES 3
Irwan
Super User
Super User

hello @Bansi008 

 

please check if this accomodate your need.

MIN_DATE =
MINX(
    FILTER(
        'Table',
        'Table'[SECURITY]='Table'[SECURITY]&&
        'Table'[DATE]<=EARLIER('Table'[DATE])
    ),
    'Table'[DATE]
)

Irwan_0-1721332220578.png

 

Hope this will help you.

Thank you

@Irwan thank you this is helpful

Hello @Bansi008 

 

Glad to be a help.

 

Thank you.

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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