Forum Discussion

gauravnarchal's avatar
gauravnarchal
Post Prodigy
5 years ago
Solved

Filter unique values from the table

I wanted to create a measure to filter only the unique values from the below table as there are repeated information in the table.

 

As an example result should only show Product WW & Mark Y only once.

 

ProductMark
WWY
WWY
WWO
WWO
KKY
KKY
KKY
KKY
KKW
WWE
WWE
TTR
TTR
TTR
TTR
PPM
PPM
PPN

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    gauravnarchal - Use 

    Measure = CONCATENATEX(DISTINCT(SELECTCOLUMNS('Table',"Product",[Product])),[Product],",")
    • gauravnarchal's avatar
      gauravnarchal
      Post Prodigy

      Hi Greg_Deckler  -  I am getting the results as below.

       

      Only thing is that all products are showing together which has the same mark.

      I need to show the result as Individually. The measure which i used is 

      Unique = CONCATENATEX(DISTINCT(SELECTCOLUMNS('Database',"Product",[Product])),[Product],",")

       

       

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        gauravnarchal It's the default or are you trying to create a new table? Both are set to Don't summarize.

         

  • gauravnarchal , if you put them in table visual they will show as distinct values only

    measure like

    measure =countx(summarize(Table,Table[Product],Table[Mark]),[Mark])