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.
Hello,
I am attempting to count the number of application's comments that include a key word, not the total count of the keyword.
i.e. creating the measure on the right from the table on the left.
I have put together this measure, but this counts the total amount of keyword occurences.
Solved! Go to Solution.
Does it have to be DAX?
Keywords:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wcs/PT1GK1YlWcixLLUpMTwWznRKBYrEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Keyword = _t]),
#"Added Custom" = Table.AddColumn(Source, "Application count", (k)=> Table.RowCount(Table.SelectRows(#"Application Detail",each Text.PositionOf([Comments],k[Keyword])>-1)),Int64.Type)
in
#"Added Custom"
Application Count DAX = var k=[Keyword] return CALCULATE(countrows('Application Detail'),SEARCH(k,'Application Detail'[Comments],,0)>0)
Hi @dubya ,
You can try the following dax expression.
ApplicationsWithKeywordCount =
VAR Keyword = SELECTEDVALUE('Keywords Table'[Keywords])
RETURN
CALCULATE(
DISTINCTCOUNT('Application Detail Table'[Application #]),
SEARCH(Keyword, 'Application Detail Table'[Comments], 1, 0) > 0
)
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dubya ,
You can try the following dax expression.
ApplicationsWithKeywordCount =
VAR Keyword = SELECTEDVALUE('Keywords Table'[Keywords])
RETURN
CALCULATE(
DISTINCTCOUNT('Application Detail Table'[Application #]),
SEARCH(Keyword, 'Application Detail Table'[Comments], 1, 0) > 0
)
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Does it have to be DAX?
Keywords:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wcs/PT1GK1YlWcixLLUpMTwWznRKBYrEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Keyword = _t]),
#"Added Custom" = Table.AddColumn(Source, "Application count", (k)=> Table.RowCount(Table.SelectRows(#"Application Detail",each Text.PositionOf([Comments],k[Keyword])>-1)),Int64.Type)
in
#"Added Custom"
Application Count DAX = var k=[Keyword] return CALCULATE(countrows('Application Detail'),SEARCH(k,'Application Detail'[Comments],,0)>0)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
67 | |
64 | |
57 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |