Forum Discussion

driank's avatar
driank
Regular Visitor
5 years ago

CALCULATE LAST WEEK

HI,  I have a table with a date, I need to count teh ids of teh las week , from de same table:

Code:

last app = CALCULATE(COUNT(TableID]),Table[STATUSTO] = “apr”, WEEKNUM(Table[DATECREATE],2) = WEEKNUM(MAX(Table[DATECREATE]),2))

 

Error: A "MAX" function has been used in a True /False expession than is unsed as a table filter expression ..

Thanks

 

1 Reply