Forum Discussion

TomSinAA's avatar
TomSinAA
Helper IV
7 years ago
Solved

Presenting data from two child tables generate error

Hello,  I am connecting to an MS access database that has the following table structure

 

tbl_inspection>tbl_Observation>tbl_observation_SOP—One to Many from Observation to ObservationSOP

 

tbl_inspection>tbl_Observation>tbl_observation_issue_subtype—One to Many from Observation to SubType

 

Where tbl_inspection is the parent table to tbl_observation.  Table tbl_observation has two child tables: tbl_observation_SOP and tbl_observation_issue_subtype.

 

I have a table visual that displays data from tbl_inspection, tbl_observation, and tbl_observation_sop it gives me an error that PowerBI cannot determine the relationship between two of more fields.

 

The joins in the relationship diagram in PowerBI are correct and match the relationships in the MS Access database. See picture of relationships below

Here are the relationships between the tables

  • Anonymous's avatar
    Anonymous
    7 years ago

    TomSinAA,

    Please unselect relationship options in your PBIX file, then re-open the PBIX file and apply changes. Then create relationships manually in the PBIX file.


    Regards,
    Lydia

  • Anonymous's avatar
    Anonymous
    7 years ago

    TomSinAA,

    Please change your releationship as below.


    Regards,
    Lydia

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    TomSinAA,

    What version of Power BI Desktop do you use? In your scenairo, please drag the bridge fields of tbl_Observation table which you use to create relationships with tbl_inspection and tbl_observation_sop to the visual, and check if you still get the error.

    If the issue still persists, please share sample data of the three tables and we need to know the detailed fields you use to create relationships.

    Regards,
    Lydia

    • TomSinAA's avatar
      TomSinAA
      Helper IV

      Lydia,

       

      The issue still persists.  How do I share the sample data? 

      • Anonymous's avatar
        Anonymous
        Not applicable

        TomSinAA,

        You can upload files to OneDrive and post shared link of the files via Private Message.

        Regards,
        Lydia

  • Anonymous's avatar
    Anonymous
    Not applicable

    TomSinAA,

    Please change your releationship as below.


    Regards,
    Lydia