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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
tmhalila
Resolver II
Resolver II

Date Table

Hello,

Anyone assist please,

I have created a Date Table and Marked it as a Date Table using CALENDARAUTO as screened below

Calendarauto = 
VAR MinYr = YEAR(MIN(FactTablefile[Quarter_startdate]))
VAR MaxYr = YEAR(MAX(FactTablefile[Quarter_startdate]))
Return
FILTER(
CALENDARAUTO(9),
MinYr &&
MaxYr
)

tmhalila_0-1648710917714.png

 

Unfortunately, the date table generated picked only one year (Oct 2021 - Sept 2022) from the fact table while the referenced date column (Quarter start date) from fact table having dates starting from January 2020.

tmhalila_1-1648711070108.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@tmhalila , My advice would be to try like

 

Calendar
VAR MinYr = YEAR(MIN(FactTablefile[Quarter_startdate]))
VAR MaxYr = YEAR(MAX(FactTablefile[Quarter_startdate]))
Return
calendar(date(MinYr,1,1), date(MaxYr,12,31))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@tmhalila , My advice would be to try like

 

Calendar
VAR MinYr = YEAR(MIN(FactTablefile[Quarter_startdate]))
VAR MaxYr = YEAR(MAX(FactTablefile[Quarter_startdate]))
Return
calendar(date(MinYr,1,1), date(MaxYr,12,31))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak 

I am glad to be part of this community, you saved my day👏👏👏. Stay blessed!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors