The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
Hello @sindrekb
Can you provide some visual of the datamodel?
It probably ll help using:
RETURN
CALCULATE(
_minDate,
CROSSFILTER('TableA'[RelatedColumn], 'TableB'[RelatedColumn], Both)
)
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.
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
12 | |
8 | |
8 |