Forum Discussion

Kristofferaabo's avatar
8 years ago
Solved

mastertable based on groupby or summarize

Hi,   I want to create a new table (Table A) based on colulms from another table (Table B).   In my table A I want only unique/distict values from Column A in Table B to be returned, like a pivot...
  • Phil_Seamark's avatar
    Phil_Seamark
    8 years ago

    Hi Kristofferaabo

     

    Both should provide unique values.  I wonder if you have leading, or trailing spaces that need to be cleaned using TRIM 

     

    eg, if I have Table B with the following data

     

    Country

    ----------

    A

    A

    A

    B

    B

     

    The output of the DAX I gave you should be

     

    Country

    ------------

    A

    B

     

    I have attached a PBIX file