Forum Discussion
Extract correct Max/Min Values
- 9 years ago
Hi cobdeng,
This could be done by the following ways.
We need to create another column (Or create another date table, then create the relationship between the date table and main tbale) to help calculate.
YMD = format('Table'[ReportDate], "yyyy-mm-dd")
Then add this column in earlier calculated column, for example:
MaxDate = maxx(
filter(Sheet1, And(Sheet1[Location]=earlier(Sheet1[Location]),Sheet1[YMD]=earlier(Sheet1[YMD])),
Sheet1[Date] )Check to see if this would work.
Regards
Hi cobdeng,
This could be done by the following ways.
We need to create another column (Or create another date table, then create the relationship between the date table and main tbale) to help calculate.
YMD = format('Table'[ReportDate], "yyyy-mm-dd")
Then add this column in earlier calculated column, for example:
MaxDate = maxx(
filter(Sheet1, And(Sheet1[Location]=earlier(Sheet1[Location]),
Sheet1[YMD]=earlier(Sheet1[YMD])),
Sheet1[Date] )
Check to see if this would work.
Regards