Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have a Table that has a column that has a list of values, which I've then separated by a comma (,) delimiter as such through power query:
Column
Malware Spread
Malware Spread,Ransomware
Ransomware,Data Leak
Can I create a quick measure that can count for example the number of 'Malware Spread' values within this column (should count as 2 in this example)?
Solved! Go to Solution.
@ak8598 , You can use search or containsstring
countrows(filter(Table, containsstring([Column], "Malware Spread") )
CONTAINSSTRING and CONTAINSSTRINGEXACT: https://www.youtube.com/watch?v=XbgLGDvWdWQ&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=44
SEARCH and FIND: https://www.youtube.com/watch?v=mZt0HJw4gjQ&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=45
@ak8598 , You can use search or containsstring
countrows(filter(Table, containsstring([Column], "Malware Spread") )
CONTAINSSTRING and CONTAINSSTRINGEXACT: https://www.youtube.com/watch?v=XbgLGDvWdWQ&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=44
SEARCH and FIND: https://www.youtube.com/watch?v=mZt0HJw4gjQ&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=45
Thanks a lot, that worked perfectly!
Cheers.
User | Count |
---|---|
84 | |
76 | |
72 | |
47 | |
37 |
User | Count |
---|---|
111 | |
56 | |
51 | |
42 | |
42 |