Im creating a table report with Planned Completion Date and Actual Trend Date as Measures. The dates showing currently are in the month day year format (May 10 2024). Our company communicates in work weeks, so I would like to know if there is a calculated measure I can create that would return the work week instead of the aforementioned date format in my Date Measures.
Try creating new calcualted measure using this formula:
CASE WHEN
Not IsEmpty([Measures].[Issue Planned Completion date])
THEN
"W"||
Format(
[Time.Weekly].[Day].DateMember(
[Measures].[Issue Planned Completion date]
).Parent.startdate, "ww")
END
It should return the week number for the week which has the Planned Completion date property value
Thanks Martins. I added the calculated measure but it seems to take away the original planned completion date when selecting as a measure. I had my original report filtered by issue type Feature. After applying new measure it unfilters that for some reason.
Thanks Martins, adjusting the formatting to text worked. However, I still have the problem of losing my filtering results when choosing this new measure. Even after applying the measure I cannot use any of my pages dimensions to re filter. Is there a way around this?
CASE WHEN
Not IsEmpty([Measures].[Issue Planned Completion date])
THEN
"ww"||
Format(
[Measures].[Issue Planned Completion date], "ww")
||"'"||
Format(
[Measures].[Issue Planned Completion date], "yyyy")
END