Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Data Upload

Hi,

I've created calculating columns in "Results" that refer to the data.
When I import new data out of an Excel sheet, I receive a second field "Results (2)":

 

But the calculating colums are in "Results":

 

so that the calculating columns refer to the new data?

 

 

 

 

  • Hi Anonymous ,

     

    Just point the source path for your existing RESULTS table to the new file:

    File --> Options & Settings --> Data Source Settings

     

    Thanks,

    Pragati

     

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous 

     I have a test by two Excel data.

    Excel 1:

    Excel 2:

    Firstly get data from Excel1 and build a calculated column.

     

    Column = AVERAGEX(FILTER(Sheet1,Sheet1[Name]=EARLIER(Sheet1[Name])),Sheet1[Quantity])

     

    Result:

    Change the Data Source like 

     

    Best Regards,

    Rico Zhou

     

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

10 Replies

  • Hi Anonymous ,

     

    The reason why your new data file is named as RESULTS(2) is because there is an existing table name in your dtaa model RESULTS.

    You can easily modify names of your tables. Right click on table --> Rename

     

    Regarding the calculated column, whenever you areate a calculated column in a table, it resides in the same table. In your case they will be in RESULTS table. (as they were created there)

     

    Don't get confused with RESULTS and RESULTS(2). They are different tables.

     

    Thanks,

    Pragati

  • lkalawski's avatar
    lkalawski
    Resident Rockstar

    Hi Anonymous,

     

    No, the calculated columns will stay in Results and refer to table Results.

    Do I understand correctly that you want to import new data from Excel into the same table? Do you want a separate table?



    _______________
    If I helped, please accept the solution and give kudos! 😀

    • Anonymous's avatar
      Anonymous
      Not applicable

      Yes, I'd like to overwright the data of the old table so that the calculating colums can result new output with the new data.

      • Pragati11's avatar
        Pragati11
        Super User

        Hi Anonymous ,

         

        Just point the source path for your existing RESULTS table to the new file:

        File --> Options & Settings --> Data Source Settings

         

        Thanks,

        Pragati

         

  • Anonymous's avatar
    Anonymous
    Not applicable

    Unfortunately, the forum bugs and my sentence is chopped up into pieces....
    My question was: How can I overwright the data in "Results" so that the calculating colums refer to the new imported data and that a new field ("Results (2)") won't be created?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your data model and your problem or share me with your pbix file from your Onedrive for Business.

     

    Best Regards,

    Rico Zhou