Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Lobs
Helper II
Helper II

Calendar Month Format

Hi, Im trying to create my own calendar table but noticed that most of my data reports uses this format for Month "1/1/2020, 2/1/2020, 3/1/2020. Is there a way for me to capture the month of a specific date to align with the formatting some of my data sources use?

 

Lobs_0-1600701180373.png

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Lobs ,

 

In your calendar table, create a new column and enter:

startOfMonth = STARTOFMONTH(cal[date])

 

This should give you what you need.

 

Pete 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
Sumanth_23
Memorable Member
Memorable Member

hi @Lobs - you should be able to format your date as "m/d/yyyy" in the data view in Power BI desktop

 

Sumanth_23_1-1600701654951.png

 

You can derive the month name and month number as seen below 

MonthName = FORMAT('Date'[Date ID], "mmmm")

Sumanth_23_2-1600701817389.png

MonthNO. = MONTH('Date'[Date ID])

Sumanth_23_3-1600701894957.png

 

OR if you want to retain your original format on the Date column, you can create a new calculated column for the required format

 

NewDateFormat = FORMAT('Date'[Date ID], "d/m/yyyy")

Sumanth_23_4-1600702013551.png

 

Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!

Proud to be a Super User!



BA_Pete
Super User
Super User

Hi @Lobs ,

 

In your calendar table, create a new column and enter:

startOfMonth = STARTOFMONTH(cal[date])

 

This should give you what you need.

 

Pete 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Thank you this worked 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.