Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, I have a baffling issue creating column Month (see the screenshot) where the date column will change to the next month.
Without adding column Month - table values are correct
Add Month column - the date column is wrong
Any hints are appreciated.
Thanks.
Solved! Go to Solution.
Hi @hcze
@bhanu_gautam Thank you very much for your prompt reply, please allow me to share some content here.
I made changes to your code:
CalendarMe =
ADDCOLUMNS(
CALENDAR(DATE(2024,1,1), DATE(2025,12,31)),
"Year", FORMAT(YEAR([Date]), "0000"),
"Month Number", FORMAT(MONTH([Date]), "00"),
"Day", FORMAT(DAY([Date]), "00"),
"Month", FORMAT([Date], "mmmm")
)
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hcze
@bhanu_gautam Thank you very much for your prompt reply, please allow me to share some content here.
I made changes to your code:
CalendarMe =
ADDCOLUMNS(
CALENDAR(DATE(2024,1,1), DATE(2025,12,31)),
"Year", FORMAT(YEAR([Date]), "0000"),
"Month Number", FORMAT(MONTH([Date]), "00"),
"Day", FORMAT(DAY([Date]), "00"),
"Month", FORMAT([Date], "mmmm")
)
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@hcze , Use the below DAX
CalendarTable =
ADDCOLUMNS(
CALENDAR(DATE(2024, 1, 1), DATE(2025, 12, 31)),
"Year", YEAR([Date]),
"Month Number", MONTH([Date]),
"Day", DAY([Date]),
"Month", FORMAT([Date], "MMMM")
)
Proud to be a Super User! |
|
Thanks! It does not make sense that the sequence could cause that issue.
@hcze , the issue seems with format function remove 00 then try
Proud to be a Super User! |
|
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |