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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to extract only unique text from a column?

Ex: Apple,Orange, Grapes, Apple, Apple, Orange 

To be extracted as Apple, Orange, Grapes

6 REPLIES 6
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Please see the gif. It shows the two ways. One is using M language in the Query Editor. Another is using DAX.  If they are not what you want, please share more sample data and your expected results. Then we will understand clearly.

1.gif

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
trebgatte
Most Valuable Professional
Most Valuable Professional

It depends on what you want to do with this data afterward. You could use the technique documented here: https://marqueeinsights.com/how-to-work-with-sharepoint-multi-value-columns-in-power-bi/

 

This would give you a way to filter on all records that contain Apple, for example.

 

--Treb, Power BI MVP

 

Check out our Power BI blog posts at https://marqueeinsights.com/category/power-bi/

AnthonyTilley
Solution Sage
Solution Sage

Go to the modeling Tab

Select New Table

in the formula bar create a table as follows

 

Unique Values = DISTINCT('Table'[Colunm])




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi thanks for your support.

But this formula does not work in query editor.

Hi @Anonymous ,

Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

 

Best Regards,

Xue Ding

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

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

Hi @Anonymous ,

Do you try my way and check that sample?

= Table.Distinct(Source)

1.PNG

If that not what you want, can you please share some sample and your expected results. Then we will understand clearly.

 

Best Regards,

Xue Ding

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

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.