Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, guys!
I have a number of weeks in my file. For pivot table I want just the last week as a dimension.
Any suggestions how to do that?
if you want to use is as a dimension, then you need to use aggr
=aggr(max(WEEK),$Field)
though this is conditioned to how you date is set up so you might want change it to a date format something like date(your date&'-'year), so then it would be recognized as a number instead of a string
How is your week field? ie. normal week number of weekyear?
Use below
=Max(TOTAL {<Year= {'$(=Max(Year))'}>}Week)
I just have dates as like DD-MMM as a week
hi
you can use Week(max(field name))
Hi, it's not working
hI diana
=Max(WEEK(weekstart(date_field_name)))
=Max(TOTAL {<Year= {'$(=Max(Year))'}>}(Date#(Week,'DD-MMM')))
if you want to use is as a dimension, then you need to use aggr
=aggr(max(WEEK),$Field)
though this is conditioned to how you date is set up so you might want change it to a date format something like date(your date&'-'year), so then it would be recognized as a number instead of a string