Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone!
I created a custom Date Table for our Fiscal Year where February = Month 1 and built my custom columns from this. It seemed to be working fine, however, I tried to recreate custom column, but it defaults 2/1/2020 to Month 1 and 2/2/2020 to Month 2. I tried to recreate the issue on the table where the month numbers are correctly pulling and the same thing happens. Help!
Base Table:
Month Number:
Correct Columns:
2/1/2020 recognized as Month 1 and 2/2/2020 as Month 2
Solved! Go to Solution.
@Anonymous
Same issue happened to me with month(), you may used the following column instead.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous
Same issue happened to me with month(), you may used the following column instead.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous
Create your month number column using the following code and try:
Month Number = MONTH(EOMONTH([Date],-1))
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you!
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.
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.
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!
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?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |