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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sindrekb
Frequent Visitor

Date Measure: Earliest Date in selection

Hi, 

 

Please refer to included snip. I'm looking to create a measure that returns at all times the earliest date in a selection. As seen below, my current measure - Measure Earliest Date - returns the earliest date for each category (FYP - fiscal year period). This should ideally project 31.01.2022 in this case (which refers to FYP 2022AP01) in this case. 

 

The measure should also be dynamic in such a way that if I narrow the selection to 2023 onwards, the measure "Measure Earliest Date" projects 31.01.2023, referring to FYP 2023AP01. 

Screenshot Earliest Date.png

2 REPLIES 2
LuizKoller
Resolver I
Resolver I

Hello @sindrekb 

 

Can you provide some visual of the datamodel?

 

It probably ll help using:

 

RETURN
CALCULATE(

 _minDate,
 CROSSFILTER('TableA'[RelatedColumn], 'TableB'[RelatedColumn], Both)

)

 

 

 

sindrekb
Frequent Visitor

Update: I changed the Measure to use the formula "Firstdate" and tried to supplement with "Keepfilters". For the selection below (2023AP05 onwards), "Measure Earliest Date" should return 31.05.2023 rather than 31.01.2022.

Screenshot Earliest Date.2.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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