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
jmmoran20
Regular Visitor

Date Table Help - Month Range

Hello,

 

I am looking to create a date table. However, I need the ability to include all days in a month not just the first day. I am creating a report where there will be a table that lists the number of "projects" that are committed in a given month. I want to use an external date table to filter this information and structure it in order throughout the year. I am having a difficult time processing how to create this table.

 

Let me know if you can help or if there is already a thread I should look at.

 

Thanks!

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @jmmoran20 ,

 

You may create a calculated table Like DAX below, then create relationship with your fact data table .

 

Calendar= CALENDARAUTO()

Or

Calendar= CALENDAR( MIN(Data[Date]), MAX(Data[Date]))

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

5 REPLIES 5
jmmoran20
Regular Visitor

@TomMartens @amitchandak @v-xicai 

 

Thank you for your responses. I appreciate the feedback. I think the part of the question that I may have confused you on is that I am looking for a way to count the number of projects within a given month based upon the project's committment date. So, for example, I am trying to get a count of Total Committed for Jan 2020 - December 2021. But also using a date table in order to properly organize the data. Here's the data source for reference: 

snip power bi.PNG

 
 
v-xicai
Community Support
Community Support

Hi @jmmoran20 ,

 

You may create a calculated table Like DAX below, then create relationship with your fact data table .

 

Calendar= CALENDARAUTO()

Or

Calendar= CALENDAR( MIN(Data[Date]), MAX(Data[Date]))

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@jmmoran20 , I created one in my webinar on Time Intelligence: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...
My Youtube Tips at: https://www.youtube.com/playlist?list=PLPaNVDMhUXGYrm5rm6ME6rjzKGSvT9Jmy

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/


Appreciate your Kudos.

TomMartens
Super User
Super User

Hello @jmmoran20 ,

this article contains links to the most complete DAX statement that creates a Calendar table (Date): https://www.sqlbi.com/tools/dax-date-template/

This article explains almost everything related to date and time calculations using DAX: https://www.daxpatterns.com/time-patterns/

Hopefully, this is what you're looking for.

Best regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
TomMartens
Super User
Super User

Hey @jmmoran20 ,

 

this article contains links to the most complete DAX statement creating a Calendar (Date) table: https://www.sqlbi.com/tools/dax-date-template/

 

This article explains almost everything related to date/time calculations using DAX: https://www.daxpatterns.com/time-patterns/

 

Hopefully, this is what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.