This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have an InputTable table that has "~" in some rows in it's [Value] column. I want to remove / filter these rows and then pass the filtered InputTable table to a SEARCH function which will then do a partial match of the words in a single-column table WordList[Words] with the text in the InputTable[Value] column. Then find a Count of such matched values.
Right now SEARCH is doing a partial match on all the rows of the InputTable[Value] column which is increasing calculation time. I need to reduce time by excluding SEARCH from searching these ~ rows.
P.S: I want to do this using a DAX formula and not in Power Query.
VAR GT = COUNTA(InputTable[Value]) RETURN
IF(HASONEFILTER(WordList[Words]),
COUNTROWS(
CALCULATETABLE(
InputTable
, FILTER( InputTable, IFERROR(SEARCH(FIRSTNONBLANK(WordList[Words],1), InputTable[Value] ), -1)> 0 )
)
)
,
GT
)
Thanks.
Hi @Anonymous ,
Actually we can use KEEPFILTERS to work on it.
Measure 3 = var k = FILTER(InputTable,SEARCH("~~",InputTable[values],,BLANK())=BLANK())
return
CALCULATE(COUNTROWS(WordList),FILTER(WordList,WordList[Word] in VALUES(InputTable[values])),KEEPFILTERS(k))
Regards,
Frank
HI @v-frfei-msft ,
Getting an error for the "IN" operator for DAX in Excel 2016 PowerPivot. Here is the Sample Tool and Dummy Data files for your perusal.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 26 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 37 | |
| 33 | |
| 23 | |
| 23 |