Forum Discussion

ShayanSidddique's avatar
ShayanSidddique
Regular Visitor
6 months ago
Solved

Fact Table Multiple Dates Relationship with Dimension Date

I have a Fact Table having Multiple Date Columns  keys I wanted to Show the All the Date in A Single Table While Creating a Report. How Can I show all the Dates in the Single Table as I can just have...
  • Irwan's avatar
    Irwan
    6 months ago

    hello ShayanSiddiqueI 

     

    this should be done by using calendar table then use the calendar column as date in visualisation.

     

    Thank you.

  • cengizhanarslan's avatar
    6 months ago

    Option 1) Single Date table + USERELATIONSHIP 

    Keep one Date dimension and create:

    • 1 active relationship (e.g., Order Date)

    • Other relationships inactive (e.g., Ship Date, Invoice Date)

    Then create measures like:

    Sales by Ship Date =
    CALCULATE(
        SUM(Fact[Amount]),
        USERELATIONSHIP(Fact[ShipDate], DimDate[Date])
    )

     

    Option 2) Role-Playing Date Dimensions

    If you need to:

    • Show Order Date, Ship Date, Invoice Date side by side in the same visual

    • Slice/filter independently by each date type

    Then create:

    • DimDate_Order

    • DimDate_Ship

    • DimDate_Invoice

    All copied from the same Date table and each one has:

    • Its own active relationship