Forum Discussion

ryan_b_fiting's avatar
ryan_b_fiting
Post Patron
6 years ago
Solved

Dynamically change measure for first date

Hello Community -    I am coming across an issue with a measure I have created.  It works as expected for all periods except the very first period, and I know why, I just need some help with a solu...
  • Stachu's avatar
    Stachu
    6 years ago

    how do you store the week identyfier in your data? If it's a date then you just can count the days in the calendar table

    If it's something like W01, W02, etc.. yhen you can create reference table that would store the the value, e.g. like this:

    W01 4
    W02 7
    W03 7
    W04 7

    this way you don't need and IF statement in your measure, you just reference value from the table