Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hi Team,
I have 4 date columns I need to display min and max.
Min Date : I want to look if "actula start date" has date pick the min or if it is blank then look the value from "Planned Start Date".
Max Date : Similar as Min date but columns are "Planned Closed Date" & "Actual Closed Date".
Here is my data.
My out look is :
Min Date : 1/1/2020
Max Date : 1/6/2021
Project | Sub Project | Planned Start Date | Planned Closed Date | Actual Start Date | Actual Closed Date |
A | AA | 1/12/2020 | 1/12/2021 | 1/2/2021 | |
A | AB | 1/1/2020 | 1/6/2020 | 1/4/2020 | 1/10/2020 |
A | AC | 1/6/2021 | 1/12/2021 | ||
B | BA | 1/5/2021 | 1/12/2021 | ||
B | BB | 1/4/2020 | 1/6/2020 | 1/6/2020 | 1/8/2021 |
B | BC | 1/3/2021 | 1/5/2021 | 1/4/2021 | 1/6/2021 |
Solved! Go to Solution.
Hey @Anonymous ,
you can do that with a measure like that:
Min Date = IF( MIN( 'Table'[Actual Start Date]) <> BLANK(), MIN( 'Table'[Actual Start Date] ), MIN( 'Table'[Planned Start Date] ) )
Similar then for the MAX.
you could do something like this
mindate =
IF (
ISBLANK ( [actual start date] ),
min([planned Start Date]),
min([actual start date])
)
you can do similar for the max date
Proud to be a Super User!
Hey @Anonymous ,
you can do that with a measure like that:
Min Date = IF( MIN( 'Table'[Actual Start Date]) <> BLANK(), MIN( 'Table'[Actual Start Date] ), MIN( 'Table'[Planned Start Date] ) )
Similar then for the MAX.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |