Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a list or records that describe issues related to specific devices:
Description |
DEVICE 1 Peer Briefly Not Established |
Port Down DEVICE 2 |
Network DEVICE 9 Outage |
DEVICE 4 Device Reboot |
And I also have a table list of names of all devices in the environment :
Device Name |
DEVICE 1 |
DEVICE 2 |
DEVICE 3 |
DEVICE 4 |
DEVICE 5 |
DEVICE 6 |
DEVICE 7 |
DEVICE 8 |
DEVICE 9 |
How do I add a column to the first table that will return the name of the DEVICE found in the Description ?
I was able to define this with a small list of devices where I need to specify each device (using
, but the data I am supposed to apply this to has hundreds of records so I cannot just define each one
hi @Anonymous DEVICE 1 Does the place have a numerical value?
Hi Dima,
No , not all of them , I just used it in order to easily identify them as examples
@Anonymous too bad, if the devices contained a numerical value then I would have a solution for you.
look at the attached file, maybe it will help you.
Hi @Anonymous
This is best done in Power Query. Place the following M code in a blank query to see the steps.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcnEN83R2VTBUCEhNLVJwKspMTcupVPDLL1FwLS5JTMrJLM5ITTm0AAKVYnWilQLyi0oUXPLL8w4tgGo2UlAAy/illpTnF2UrQIUtFRT8S0sS01NRtEMlTRRcUssyk1MVglKT8vNLlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Description = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Description", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Device", each "Device" & " " & Text.Trim(Text.BeforeDelimiter(Text.AfterDelimiter([Description], "DEVICE "), " ")), type text)
in
#"Added Custom"
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
@Anonymous , I think my video can help
Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |