Forum Discussion
Custom Date Table - Same Month Returning as 2 Month Numbers
- Anonymous5 years ago
Anonymous
Same issue happened to me with month(), you may used the following column instead.Column = IF(([Date].[MonthNo])=1,12,([Date].[MonthNo])-1)
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
You could do a switch or nested if statement
so if month from date is February then 2 if month from date is March then 3 etc.
last thing is make a calendar in excel based on what you want and then query it in.
Thanks! My issue is it worked in the past, so not sure why it stopped working.
- Anonymous5 years agoNot applicable
Oh ok I wonder If the format of the date column changed. Have you tried adjusting it in column settings? that might of caused the issue if it worked previously.
- Anonymous5 years agoNot applicable
Nothing has changed... in fact when I tried to recreate the month number column on the same table with the correct month numbers, I get the same issue. Thanks for replying!
- Anonymous5 years agoNot applicable
Hey Anonymous
this one is weird i opened up my laptop duplicated your query and then couldn't get the same issue. i get the corrected result. not sure what is happening in you report. any chance you could send a copy to see what is happening?