Forum Discussion
ASAP - Need formula
- 6 years ago
Hi Irussaa ,
If you want a DAX formula, you could try the following DAX:
Column = "W" & WEEKNUM ( 'DateDim'[WeekEnding], 1 ) & " " & MONTH ( 'DateDim'[WeekEnding] ) & "/" & DAY ( 'DateDim'[WeekEnding] )
It works! v-eachen-msft
But I have one more question, why is that first week ending in the beginning of the month (which is the first week in january) already generate WE2 not WE1?
Thank you
Hi Irussaa ,
Replace WEEKNUM ( 'DateDim'[WeekEnding], 1 ) with WEEKNUM ( 'DateDim'[WeekEnding], 2 ). After my tests, it will work.
- Irussaa6 years agoHelper I
v-eachen-msft thank you so much!
- Irussaa6 years agoHelper I
v-eachen-msft I'm sorry can I ask one more question?
Why the WE data isn't arranged in the chart?
Thank you!
- PattemManohar6 years agoCommunity Champion
Irussaa Please change your WE column "Sort By Column" to the WeekEndingNumber that needs to be derived from WeekEndingDate. (As you can't directly use the WeekEndingDate for Sort By Column, as WE is using that field)
- Irussaa6 years agoHelper I
PattemManohar okay thanks!