Forum Discussion

hylosko's avatar
hylosko
Helper III
4 years ago
Solved

transforming date values in column

Hello Experts !

 

i have 3 tables with 3 diffrent date values in date column, i want to get for every table ( im creating fact table from those 3) month date format (Y-M) and that is enough for me, how i can do that ?

 

1

2

3

 

 

 

  • (Replace Date Field appropriately)

    For Table 2 and 3, use following formula

    = Date.ToText(Date.From([Date Field]),"yyyy-MMM")

    For Table1

    = Date.ToText(Date.From(Text.From([Date Field])&"01"),"yyyy-MMM")

1 Reply

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Most Valuable Professional

    (Replace Date Field appropriately)

    For Table 2 and 3, use following formula

    = Date.ToText(Date.From([Date Field]),"yyyy-MMM")

    For Table1

    = Date.ToText(Date.From(Text.From([Date Field])&"01"),"yyyy-MMM")