Forum Discussion

Visharavana's avatar
Visharavana
Resolver II
1 year ago
Solved

Need help for data model

I have PR, PO, and GR tables. Three tables are connected to the correct relationship. Now I want to connect the dim_date table to these tables, and one issue is that PR, PO, and GR tables have separate dates. I connected dim_date to the PR table date column but was not able to connect to the PO and GR table date columns. It shows an ambiguity problem. How to connect these tables without using USERELATIONSHIP.

3 Replies

  • Instead of having one dim_date table, create separate date tables for each of your tables (e.g., dim_date_PR, dim_date_PO, dim_date_GR). Each of these can have a many-to-one relationship with their respective tables based on their date columns.

     

    Connect each date table to its corresponding table based on their respective date columns.
    This approach avoids ambiguity and maintains clear relationships for each table.

     

    If this helped, a Kudos 👍 or Solution mark would be great!
    Cheers,
    Kedar Pande
    www.linkedin.com/in/kedar-pande

    • Visharavana's avatar
      Visharavana
      Resolver II

      Thank you for your fast response.I want to use one date for the whole report. That's why I created dim_date. Your given idea does not fit this scenario because I want only one date column. That column filter used the whole report. Is there any other possible way?