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
antmat
Frequent Visitor

Load dates based on other tables

Hi! We have a Date Table (Calendar) in our Data warehouse, with dates from 2008-2017. But in some reports we only want to load dates based on the other imported data, ex. "min(sales date)" to "max(sales date"). Is this possible? Or should we think different when using Date tables in Power BI?

 

Thanks!

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi antmat,

 

>>The problem is that our Azure Datawarehouse already have a complete Date table, which we would like to use.

 

Based on your description, you already had a date table, you want to know how to use it to get a specify dynamic date table, right?

 

If it is a case, you could take a look at below steps:

1. Create tables.

Calendar table.(your date table form azure warehouse)

 Capture.PNG

Specify table with date column.

 Capture2.PNG

 

2. Create the new table with minimum and maximum date from the specify  

Table = FILTER(CALENDARTable,AND(CALENDARTable[Date]>=FIRSTDATE(Sheet1[Date]),CALENDARTable[Date]<=LASTDATE(Sheet1[Date])))

 Capture3.PNG

 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
BhaveshPatel
Community Champion
Community Champion

Hi Antmat,

 

This post on PowerBI community will provide you the best guidance and use of DAX to create a Dynamic Date Table.

 

https://community.powerbi.com/t5/Desktop/Possible-Tip-Trick-Dynamic-Date-Dimension-Table/td-p/8462

 

Best Regards,

Bhavesh

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Hi 

 

Thanks, but I already know how to create a dynamic date table in PowerBI. The problem is that our Azure Datawarehouse already have a complete Date table, which we would like to use. 

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.