Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
gauravnarchal
Post Prodigy
Post Prodigy

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
2 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

@gauravnarchal - Use 

Measure = CONCATENATEX(DISTINCT(SELECTCOLUMNS('Table',"Product",[Product])),[Product],",")


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

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

Greg_Deckler_0-1599755468789.png

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@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])

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@gauravnarchal - Use 

Measure = CONCATENATEX(DISTINCT(SELECTCOLUMNS('Table',"Product",[Product])),[Product],",")


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler  -  I am getting the results as below.

 

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

gauravnarchal_0-1599747849540.png

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

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

 

gauravnarchal_1-1599748139618.png

 

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

Greg_Deckler_0-1599755468789.png

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors