Forum Discussion

GEN3Electric's avatar
GEN3Electric
Regular Visitor
10 years ago

Query Breaks and I don't know why

This will be the 2nd time I'm having this problem. Something changes and my model breaks. I don't know what happened. I made no delibrated change. I start to receive this message. Last time to fix it I deleted the query and rebuilt it. Is there something I'm missing or doing wrong? Is there a way to revert a file back in history?

 

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    GEN3Electric Couple things I'll mention:

    1) For future snapshots, I find that "Snipping Tool" in Windows works really well to capture images (rather than taking photo's)

    2) You may want to delete the second photo as it contains personal information (unless that is all test data)

    3) It looks like your underlying data set contains duplicate rows, so however that process is updating data needs to be modified so that it doesn't pull duplicates in to Power BI -> This is why you are getting the error.

    One side of the relationship in Power BI always has to stay unique.

    • GEN3Electric's avatar
      GEN3Electric
      Regular Visitor

      Thank you Anonymous but:

       

      1. Snipping Tool is great but it would not work with an open Dialog box.

      2. I did delete the 2nd Photo. It was a publicly avalable data set of property records.

      3. I have udated & refreashed the inderlying data set dozens of time with no problems. I have looked for duplicates in excel and seen none. The reports the info comes from should not have any dulplicats in it. Something is changing in the file. last time  this occurerr I deleted the bad query and requried the same info and it was fine. 

      • Anonymous's avatar
        Anonymous
        Not applicable

        GEN3Electric hmm. I have mine on my toolbar and I can use it any time. You could also screen shot by alt + PrtScn, then snippet that. - all of which doesn't help you at all with your initial question. Sorry.

        "Deleted the bad Query" - what is this query step doing?

  • v-haibl-msft's avatar
    v-haibl-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    GEN3Electric

     

    You can create the many-to-one relationship successfully at first. But if the Invoice Id column in “Sold By Sales Detail Report” changes later as following screenshot, you’ll receive the warning message once you refresh the tables in Power BI Desktop.

     

    For creating and managing relationships in Power BI Desktop, please refer to this document. In a many-to-one relationship, at least one column in one of the tables must contain unique values.

     

    Best Regards,

    Herbert