Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have looked but I don't think this is possible, but hopefully I'm wrong. BTW, I'm making things up here, so ignore any logical issues 🙂
Ticket ID | Long Description |
1237 | Active Directory Failure Node 128 |
1238 | NAS Storage Failure |
1239 | Active Directory Truncation Error |
1240 | Memory Failure |
1241 | Add Memory to node 18132 |
The descriptions are generally similar but are verbose. We want to categorize them, right now we are using an if statement where we use Text.Contains for the various categories. If text contains Active Directory we add a new column with Active Director, Memory events, have a value of memory.
This "if Text.Contains" statement is difficult to maintain, so I was thinking of having a table with the values and have Power BI deal with it.
Search For | Return |
Active Directory | Active Directory |
Memory | Memory |
NAS | Storage |
SAN | Storage |
I was pretty certain that fuzzy match wasn't the solution, and confirmed it wouldn't work.
I did see the post from https://community.powerbi.com/t5/Desktop/Matching-values-in-one-table-using-wildcards-with-string-va... where they show how to do it in a DAX formula, but I'm trying for this within Power M.
Any thoughts are appreciated. Thank you
Solved! Go to Solution.
@Anonymous ,
Try this code for a custom column:
let _text = [Long Description] in
Table.SelectRows(Search, each Text.Contains(_text,
[Search For]))
Thanks for this.
Using the example code it works perfectly fine.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
122 | |
101 | |
71 | |
61 |