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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.