Forum Discussion
Removing incomplete weeks from daily dataset
You can build something into your measure to return blank in the current week like this.
NewMeasure =
VAR thisdateeow =
MAX ( 'Date'[Date] )
- WEEKDAY (
MAX ( 'Date'[Date] )
) + 8
VAR thiseow =
TODAY ()
- WEEKDAY (
TODAY ()
) + 8
RETURN
IF (
thisdateeow < thiseow,
[Your Measure],
BLANK ()
)Regards,
Pat
3 Replies
- mahoneypat
Microsoft Employee
You can build something into your measure to return blank in the current week like this.
NewMeasure =
VAR thisdateeow =
MAX ( 'Date'[Date] )
- WEEKDAY (
MAX ( 'Date'[Date] )
) + 8
VAR thiseow =
TODAY ()
- WEEKDAY (
TODAY ()
) + 8
RETURN
IF (
thisdateeow < thiseow,
[Your Measure],
BLANK ()
)Regards,
Pat
- butlerjay87
Helper I
Amazing, thank you very much!
- AnonymousNot applicableIt's very easy: when you reach out for data of the same week last year, do not grab all the days of the week but as many days as there are days in the week to which you want to compare. For such calculations you have to have a good calendar.