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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Filtering out data from one column into another

I got a column in my table called attributes_overview in which information is just unsorted. It looks something like this:

 

Title | Attributes_Overview | Price
Laptop A | ADE34DG 123.123.123.123 Active | 980,10$
Phone A | 123.123.123.123 ADE34DG Active | 620,50$
Laptop B | Active ADE34DG 123.123.123.123 | 890,00$

 

The information being all random offcourse.

I need to make an extra column which only includes the MAC-Addresse of the devices.
I got this far but now I'm stuck:

MAC = IF(SEARCH("???.???.???.???", table[Attributes_Overview]))

6 REPLIES 6
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team _ kalyj

v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I can extract the address in the format you mentioned "???.???.???.???".

Create a calculated column.

Addresse =
VAR _Position =
    SEARCH ( "???.???.???.???", 'Table'[Attributes_Overview] )
RETURN
    MID ( 'Table'[Attributes_Overview], _Position, 15 )

Get the result.

vkalyjmsft_0-1658223925944.png

If you also want to extract the ADE34DG and Active part, is there any logic to distinguish them from text before or after?

 

Best Regards,
Community Support Team _ kalyj

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

azakir
Resolver I
Resolver I

Hi @Anonymous 

In Power Query, you should be able to Split the column by delimeter

From PBI Desktop > Transform Data > Split Column > By Delimeter

From there : 

azakir_1-1657779605290.pngazakir_2-1657779621769.png

 

 

Anonymous
Not applicable

I placed the "|" in the post to mark the different columns. I need to split up this part "ADE34DG 123.123.123.123 Active" but the order of the column is random and the MAC-Address is also always different.

amitchandak
Super User
Super User

@Anonymous , Try a new column in the power query

Text.Combine( List.Select(Text.Split([Attributes_Overview], " "), each _ Text.Contains(_, ".")),",")

 

I was not able test that

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

What do the "_" stand for?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.