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 the typical date hierarchy (Years, Months, Days)

  • 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.

3 Replies

  • HotChilli's avatar
    HotChilli
    Icon for Community Champion rankCommunity Champion

    This is  standard behaviour.  The hierarchy switches to 'the other side' 

    • 6DiegoDiego9's avatar
      6DiegoDiego9
      Icon for Helper I rankHelper I

      I used to put that left DATA field in Shares axis of a chart.
      Now it lost the hierarchy.

      How do I restore the hierarchy?  if I add it manually, I get this, that doesn't help:

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.