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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Analitika
Post Prodigy
Post Prodigy

Generate calendar only by years and quarters having no dates

I have no dates in table, only year and quarter, how to generate calendar by quarters only?

 

Now i doing like that:

 

Date = CALENDAR (
DATE ( MIN(Table1[Year]), 1, 1),
DATE ( MAX(Table1[Year]), 12, 31)
)
 
but this give wrong rsult on visuals, as i have blanks in visual then, also measures does not count LY as cant found this year period
 
So i need to do something like that
 
Date = CALENDAR (
DATE ( MIN(Table1[Year]), Month(EndofQuarter(Table1[Qrt])), Day(EndofQuarterMonth(Table1[Qrt]))),
DATE ( MAX(Table1[Year]), Month(EndofQuarter(Table1[Qrt])), Day(EndofQuarterMonth(Table1[Qrt]))))
)
1 REPLY 1
v-deddai1-msft
Community Support
Community Support

Hi @Analitika ,

 

I suggest you create a new date table by the following formula: 

 

Dim_Date = 
ADDCOLUMNS (
CALENDAR (DATE(2019,01,01), TODAY()-1),
"Year", YEAR ( [Date] ),
"Quarter", FORMAT ( [Date], "Q" ),
"YearQuarter" ,YEAR ( [Date] )&FORMAT ( [Date], "Q" ))

 

And you can create a new column in your fact table by combining YEAR and QUARTER column. Create a relationship between the date table and fact table by the new column.

 

If this post help, please consider accept it as the solution to help others find it more  quickly.

 

Best Regard,

Dedmon Dai

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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