Skip to main content
Mike Moss 님이 #Tableau Desktop & Web Authoring에 질문했습니다

Hi, I want to be able to compare counts of distinct users based on where we were last year vs where we are this year. The dimension field I'm splitting this by is a date they sign up for, so it extends into the future, and we break down the year into seasons.

 

I can't understand why using OFFSET isn't working here, can anyone help?

 

Code for the table calc is:

LOOKUP(COUNTD(

IF [Order Rcvd Timestamp] < DATEADD('year', -1, TODAY())

THEN [User ID] END

),-1)

 

How can I do 'last year to date' calculations for future dates using offsets?Table Calculation 

Thanks,

 

Mike.

답변 2개
  1. 2024년 2월 28일 오후 4:29

    @Mike Moss​ 

    Thanks for the upvote,

    Glad to help out. If you don’t mind please mark my response Best to make it easier for others to find and close the thread

    thanks

    Jim

0/9000