Forum Discussion

Yrstruly2021's avatar
Yrstruly2021
Helper V
5 years ago
Solved

Relevant Relationships, Data Modeling

VijayP VijayPHow do i get a relationship between payments and invoice, and dates and dates and payments?

see file: https://drive.google.com/file/d/1CBpFLkw37E5aeYSG9RXMLTzOXUCdcn4m/view?usp=sharing

and holidays and payments: https://twitter.com/DataMozart/status/1376164560055508992/photo/1

Ashish_Mathur selimovd @PhilipTreacy

 

  • v-kkf-msft's avatar
    v-kkf-msft
    5 years ago

    Hi Yrstruly2021 ,

     

    I create the model shown in the figure below and get the following data. Does this match the output you want?

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

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

8 Replies

  • VijayP's avatar
    VijayP
    Community Champion

    Yrstruly2021 

    Issue is these tables are not containing a proper look up value (Primary Key) Establish connection.

    Invoice and Payments are not talking to each other. we need to bring that and I suggest merging Invoice and Payment together to make that as a single table so that

    Date table will be connected to the Fact Table

    Then we need not have any relation with PHolidays and even we can create a virtual relationship using TREATAS

    will you agree?

    • VijayP's avatar
      VijayP
      Community Champion

      Yrstruly2021 

      Issue is the data is incomplete, so I suggest you can reconstruct the Data 

      e.g.,, I may not be knowing how to related Invoice and Payment Data!

    • v-kkf-msft's avatar
      v-kkf-msft
      Community Support

      Hi Yrstruly2021 ,

       

      I create the model shown in the figure below and get the following data. Does this match the output you want?

       

      If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

      Best Regards,
      Winniz

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

      • Yrstruly2021's avatar
        Yrstruly2021
        Helper V

        Thank you. It is exactly what i wanted. Will be able to filter by dates any table etc?