# Excel Magic Trick 1367

## Power BI Desktop: DAX CALENDAR Function to Create Calendar / Date Table

### DESCRIPTION

How to make Calendar Table in Power BI Desktop?
See how to create three types of Calendar Tables in Power BI Desktop using the CALENDAR Function and various other functions:
(00:02) Files to Download
(00:25) Introduction
(01:54) Define Calendar / Date Table
(02:50) Calendar Table #1: All Dates between Min and Max dates in the Fact / Sales Table. See the DAX Functions: CALENDAR, MIN and MAX. Learn about the DAX “Create” Table Function: CALENDAR.
(05:08) Calendar Table #2: All Dates between the first day in the first month, and the last day in the last month from the Fact / Sales Table. See the DAX Functions: CALENDAR, MIN, MAX and EOMONTH.
(07:42) Calendar Table #3: All Dates for any year (first of year to end of year) that is represented in the Fact / Sales Table. See the DAX Functions: CALENDAR, MIN, MAX, YEAR and DATE.
(09:36) Create a Year DAX Calculated Column with two methods: 1) YEAR function, 2) Dot Convention DAX Formula that allows us to extract only certain parts of the date, such as the formula: dCalendar[Date].[Year] to get the Year from a Serial Number Date.
(11:26) Create a Month Number DAX Calculated Column using the Dot Convention DAX Formula that allows us to extract only certain parts of the date, such as the formula: dCalendar[Date].[MonthNo] to get the Month Number from a Serial Number Date.
(11:50) Create a Month Name DAX Calculated Column with two methods: 1) FORMAT function, 2) Dot Convention DAX Formula that allows us to extract only certain parts of the date, such as the formula: dCalendar[Date].[Month] to get the Month Name from a Serial Number Date.
(13:55) Create Relationship between Calendar Table and Fact Table.
(14:37) Sort Month Name Column by Month Number Column.
(15:30) Test Calendar Tables by adding new dates to the Fact Sales Table.
(17:03) Summary
{"ft_lang_label":"__label__en","ft_lang_prob":0.7624385,"math_prob":0.92593235,"size":1993,"snap":"2019-13-2019-22","text_gpt3_token_len":518,"char_repetition_ratio":0.13423832,"word_repetition_ratio":0.24169184,"special_character_ratio":0.26743603,"punctuation_ratio":0.13868614,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98883945,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-05-25T09:38:18Z\",\"WARC-Record-ID\":\"<urn:uuid:3b46477c-db15-460c-8121-f0a259c29e0d>\",\"Content-Length\":\"75615\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9aa8ea7c-9561-46e5-824e-9074c11d4790>\",\"WARC-Concurrent-To\":\"<urn:uuid:0cd302da-8175-442e-a6fc-87ab35b8c1b8>\",\"WARC-IP-Address\":\"185.11.240.163\",\"WARC-Target-URI\":\"http://masterexcel.net/excel-magic-trick-1367/\",\"WARC-Payload-Digest\":\"sha1:IVW4XCYUIEBPTJO2DIFF4WGRJBOE23YA\",\"WARC-Block-Digest\":\"sha1:4MMCPLE2QIACZGAUQFXPVNLTP6TMTDSH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-22/CC-MAIN-2019-22_segments_1558232257939.82_warc_CC-MAIN-20190525084658-20190525110658-00080.warc.gz\"}"}