Forum Discussion

6DiegoDiego9's avatar
6DiegoDiego9
Icon for Helper I rankHelper I
4 years ago
Solved

Date field no more(?) data type after I create a relationship

After I create a relationship between the date fields of two tables, the left one seems no more seen as a date:     Why? After I create this relationship I'm no more able to create/see th...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi 6DiegoDiego9 ,

     

     

     

    • You could follow these steps to get hierarchy back.

    1. Add columns to Table2:

    Year = YEAR([Date])
    Quarter = QUARTER([Date])
    Month = FORMAT([Date],"mmmm") 
    Day = DAY([Date]) 

    2. Right-click Date column -> Create Hierarchy

    3. Right-Click the new added columns -->Add to Hierarchy

    Below is the final output:

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.