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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Do need a separate date table

I have a simple Date, and Count columns in my source data. I won't need to relate the data to any other tables or files.

 

Can I simply add Year, Month, MonthName, Week, WeekNum etc etc in the same table rather then building a separate date table and creating a relationship?

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Yes, you can try using the format function to add Year, Month, MonthName, Week, WeekNum etc etc in the same table rather then building a separate date table and creating a relationship

Year1 = FORMAT(Sheet1[Date],"yyyy") 
Month = FORMAT(Sheet1[Date],"mm") 
Monthname = FORMAT(Sheet1[Date],"mmmm") 
Week = FORMAT(Sheet1[Date],"w") 
Weeknum = FORMAT(Sheet1[Date],"ww") 

https://learn.microsoft.com/en-us/dax/format-function-dax 

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Yes, you can try using the format function to add Year, Month, MonthName, Week, WeekNum etc etc in the same table rather then building a separate date table and creating a relationship

Year1 = FORMAT(Sheet1[Date],"yyyy") 
Month = FORMAT(Sheet1[Date],"mm") 
Monthname = FORMAT(Sheet1[Date],"mmmm") 
Week = FORMAT(Sheet1[Date],"w") 
Weeknum = FORMAT(Sheet1[Date],"ww") 

https://learn.microsoft.com/en-us/dax/format-function-dax 

 

Best Regards,
Community Support Team _ Eason

 

lukiz84
Memorable Member
Memorable Member

You can, but then you are missing time intelligence features.

Anonymous
Not applicable

Oh what time intelligence features would i be missing?  If i add in all the date based columns, what else would i be missing?

All of them 😄

 

Time Intelligence – DAX Guide

 

But if you don't need them, then it's ok to just add the fields you like to use.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors