Forum Discussion
saanah2019
Helper II
7 years agoFind the min and max date
Hi i have a very basic question that I am stuck on. I have 2 columns from the same table. Customer Date Customer Date 1 2/2/2018 2 2/6/2018 3 2...
- 7 years ago
Hi saanah2019
You may create a column like below:
Column = IF ( 'Table'[Date] = MAX ( 'Table'[Date] ), "MAX", IF ( 'Table'[Date] = MIN ( 'Table'[Date] ), "MIN", BLANK () ) )Regards,
saanah2019
Helper II
7 years agoAnonymous
Hey I am not sure why I am not getting the right answer. What am I doign wrong here?
Is Latest Row Filter =
VAR LatestDate = MAXX(FILTER(Billing,Billing[Bill Date] = EARLIER(Billing[Bill Date)),Billing[Bill Date)
RETURN IF(Billing[Bill Date=LatestDate,1,0))))
Max =
VAR LatestDate =
CALCULATE ( MAX ( Billing[Bill Date] ), ALL ( Billing ) )
RETURN
IF ( MIN ( Billing[Bill Date] ) = LatestDate, 1, 0 )
v-cherch-msft
Microsoft Employee
7 years agoHi saanah2019
You may create a column like below:
Column =
IF (
'Table'[Date] = MAX ( 'Table'[Date] ),
"MAX",
IF ( 'Table'[Date] = MIN ( 'Table'[Date] ), "MIN", BLANK () )
)
Regards,