Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello All,
I have created a Calendar Table Power BI Desktop using
Solved! Go to Solution.
@Anonymous Wasn't sure if you wanted to create a date table in Power Query but here's the one I use:
let
Source = #date(2011, 1, 1),Encoding = 65001,
#"Convert to List" = List.Dates(Source, Number.From(#date(2020,12,31))-Number.From(Source),#duration(1,0,0,0)),
#"Converted to Table" = Table.FromList(#"Convert to List", Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Renamed Column to Date" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Date Range"}}),
#"Changed Type to Date" = Table.TransformColumnTypes(#"Renamed Column to Date",{{"Date Range", type date}}),
#"Inserted Year" = Table.AddColumn(#"Changed Type to Date", "Year", each Date.Year([Date Range]), Int64.Type),
#"Inserted Start of Year" = Table.AddColumn(#"Inserted Year", "Start of Year", each Date.StartOfYear([Date Range]), type date),
#"Inserted End of Year" = Table.AddColumn(#"Inserted Start of Year", "End of Year", each Date.EndOfYear([Date Range]), type date),
#"Inserted End of Month" = Table.AddColumn(#"Inserted End of Year", "End of Month", each Date.EndOfMonth([Date Range]), type date),
#"Inserted Month Name" = Table.AddColumn(#"Inserted End of Month", "Month Name", each Date.MonthName([Date Range]), type text),
#"Inserted Start of Week" = Table.AddColumn(#"Inserted Month Name", "Start of Week", each Date.StartOfWeek([Date Range]), type date),
#"Inserted End of Week" = Table.AddColumn(#"Inserted Start of Week", "End of Week", each Date.EndOfWeek([Date Range]), type date),
#"Duplicated Column" = Table.DuplicateColumn(#"Inserted End of Week", "Date Range", "Weekday"),
#"Create Weekday" = Table.TransformColumns(#"Duplicated Column", {{"Weekday", each Date.DayOfWeekName(_), type text}}),
#"Duplicated Column1" = Table.DuplicateColumn(#"Create Weekday", "Date Range", "Week of Year"),
#"Calculated Week of Year" = Table.TransformColumns(#"Duplicated Column1",{{"Week of Year", Date.WeekOfYear, Int64.Type}}),
#"Inserted Quarter" = Table.AddColumn(#"Calculated Week of Year", "Quarters", each "Q" & Number.ToText(Date.QuarterOfYear([Date Range])),type text),
#"Inserted End of Quarter" = Table.AddColumn(#"Inserted Quarter", "End of Quarter", each Date.EndOfQuarter([Date Range]), type date)
in
#"Inserted End of Quarter"
Proud to be a Super User!
@Anonymous Wasn't sure if you wanted to create a date table in Power Query but here's the one I use:
let
Source = #date(2011, 1, 1),Encoding = 65001,
#"Convert to List" = List.Dates(Source, Number.From(#date(2020,12,31))-Number.From(Source),#duration(1,0,0,0)),
#"Converted to Table" = Table.FromList(#"Convert to List", Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Renamed Column to Date" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Date Range"}}),
#"Changed Type to Date" = Table.TransformColumnTypes(#"Renamed Column to Date",{{"Date Range", type date}}),
#"Inserted Year" = Table.AddColumn(#"Changed Type to Date", "Year", each Date.Year([Date Range]), Int64.Type),
#"Inserted Start of Year" = Table.AddColumn(#"Inserted Year", "Start of Year", each Date.StartOfYear([Date Range]), type date),
#"Inserted End of Year" = Table.AddColumn(#"Inserted Start of Year", "End of Year", each Date.EndOfYear([Date Range]), type date),
#"Inserted End of Month" = Table.AddColumn(#"Inserted End of Year", "End of Month", each Date.EndOfMonth([Date Range]), type date),
#"Inserted Month Name" = Table.AddColumn(#"Inserted End of Month", "Month Name", each Date.MonthName([Date Range]), type text),
#"Inserted Start of Week" = Table.AddColumn(#"Inserted Month Name", "Start of Week", each Date.StartOfWeek([Date Range]), type date),
#"Inserted End of Week" = Table.AddColumn(#"Inserted Start of Week", "End of Week", each Date.EndOfWeek([Date Range]), type date),
#"Duplicated Column" = Table.DuplicateColumn(#"Inserted End of Week", "Date Range", "Weekday"),
#"Create Weekday" = Table.TransformColumns(#"Duplicated Column", {{"Weekday", each Date.DayOfWeekName(_), type text}}),
#"Duplicated Column1" = Table.DuplicateColumn(#"Create Weekday", "Date Range", "Week of Year"),
#"Calculated Week of Year" = Table.TransformColumns(#"Duplicated Column1",{{"Week of Year", Date.WeekOfYear, Int64.Type}}),
#"Inserted Quarter" = Table.AddColumn(#"Calculated Week of Year", "Quarters", each "Q" & Number.ToText(Date.QuarterOfYear([Date Range])),type text),
#"Inserted End of Quarter" = Table.AddColumn(#"Inserted Quarter", "End of Quarter", each Date.EndOfQuarter([Date Range]), type date)
in
#"Inserted End of Quarter"
Proud to be a Super User!
@Anonymous if you created a table using DAX expression it will not show up in PQ. You can create a calendar using PQ, there are tons of posts on how to create one.
Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.