Forum Discussion

noah_harburger's avatar
noah_harburger
Regular Visitor
2 years ago
Solved

Adding a Date Column to an existing Table that references date of source

I have a series of tables in my power BI file (a template i inherited from another person). Most of the tables have had a Date column that has been added to them, so that you can drill down the data ...
  • ExcelMonke's avatar
    2 years ago

    Hello,
    You need to extract the values left of the "_" Delimiter. This should leave you with an 8 digit number 20240610, etc. 
    From here there are two  ways to get the date. One through Power Query M in transform data, or DAX (my preferred way). For the DAX you can use a combo of LEFT, MID, and RIGHT respectively to get your YEAR, MONTH, and DAY.