Forum Discussion
efilipe
8 years agoHelper IV
Identify last day
Hi guys, I have a date table being constructed like: Date = ADDCOLUMNS ( CALENDAR (DATE(2017;5;1); TODAY()); "DateAsInteger"; FORMAT ( [Date]; "YYYYMMDD" ); "Year"; YEAR ( [Date] ); "Mon...
Vvelarde
8 years agoCommunity Champion
Hi, try with:
LD = If(Store[Date]=Max('Date'[Date]) && Store[Store]="Android";1;0)
Regards
Victor
efilipe
8 years agoHelper IV
Nope. It looks like it can't get an unique value
- efilipe8 years agoHelper IV
Vvelarde i'm trying to resolve on the Stores table with M function. Any idea how to solde the error:
Expression.Error: Não é possível converter o valor #date(2017, 8, 8) para o tipo List.
Detalhes:
Value=08/08/2017
Type=Typeif [Date] = List.Max([Date]) && [OS] = "Android" then 1 else 0