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.
I have a column with text and i'm trying to create a measure that will count the amount of times two words appear together.
For example:
Word 1: Text 1
Word 2: Text 2
Text 1 - Text 1 - Text 1 - Text 2
Text 1 - Text 3 - Text 1 - Text 3
Text 1 - Text 2 - Text 1 - Text 1
Text 1 - Text 2 - Text 1 - Text 1
Text 1 - Text 1 - Text 1 - Text 3
Text 1 - Text 1 - Text 1 - Text 3
Text 1 - Text 1 - Text 1 - Text 4
Result: 3 (as text 1 and text 2 appear together on 3 different rows)
I have the following dax that converts selections in splicers to strings:
The code doesn't error, but nothing is returned. Am i using the wrong contains? Or is something else off.
TIA
Hi @EddP
perhaps you need to include the delimiter (seperator) and spaces.
VAR inp = t1 & " - " & t2
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |