The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
79 | |
73 | |
39 | |
30 | |
28 |
User | Count |
---|---|
108 | |
99 | |
55 | |
49 | |
45 |