Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Append Queries create duplicate values

I have two table, one is coming from Teradata warehouse (Project ID, Project Name, Type, Cost Category, Cost, Funding, Status) and another table is coming from Excel (also with Project ID, Name, Type, Cost Category, Cost). Type includes two types: capital and operating. Cost Category includes: hardware, software, non-labor, interest. After the second table is appended to the first table, in the data model, when I dragged the cost category to a slicer, it shows duplicate for each cost category value (hardware, software, non-labor, interest, hardware, software, non-labor, interest) , but the type does not show any duplicates (only capital and operating) in another slicer. Does any one experience this problem? If so, do you know how to fix this issue? 

  • Anonymous's avatar
    Anonymous
    8 years ago

    Turns out that I have some calculation in Query Editor before append queries happen, so I appeneded the queries before the calculationa, and the duplicate values are now removed. 

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    I'm betting that you need to do a Trim or other cleanup of you column. My guess is that you have a trailing space or other type of difference in your actual values.

    • Anonymous's avatar
      Anonymous
      Not applicable

      I tried both trim and clean in Query Editor, but the duplicate values still remain. Do you have any suggestions?

      • v-jiascu-msft's avatar
        v-jiascu-msft
        Microsoft Employee

        Hi Anonymous,

         

        That's quite weird. Can you share a little sample please? At lease some snapshots.

         

        Best Regards,

        Dale