Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Unfilter specific text which is only 1 word

Hi,

Any way I can unfilter the last value 'Column272'?

but not <> 'Column272' itselt since there will be more columns 273, 274 in the future,

so shouldn't be name specific values.

 

 

Does not contain 'Column' or '-' or

Begin with '20' also not working..

 

 

jeongkim_0-1731765927767.png

 

1 ACCEPTED SOLUTION

@Anonymous , This might be a bug 

1. Try refreshing the data and loading it into the data model and check the values in frontend 

2. Duplicate the query and apply the same filter again. 

3. Try clearing the data cache located under the below setting

JaiRathinavel_0-1731860875987.png

 

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

8 REPLIES 8
Jai-Rathinavel
Super User
Super User

Hi @Anonymous ,

 

I have tested with a sample data and applied basic text filter "does not contain", I am able filter out columns which are not starting with "Column" as value

 

Before applying text filter:

JaiRathinavel_0-1731844495736.png

 

Text filter condition:

Table.SelectRows(#"Changed Type", each not Text.Contains([Value], "Column"))

 

After applying text filter:

JaiRathinavel_1-1731844537267.png

 

I would suggest reopening the PBIX file and apply the above logic.

 

Thanks,

Jai 🙂

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

still not working...

 

jeongkim_0-1731847773146.png

 

@Anonymous , Go to the next step Changed Type1 and check for "Column" value under week column. It shouldn't be there.

 

Thanks,

Jai




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

same, it's weird

 

jeongkim_0-1731860459082.png

 

@Anonymous , This might be a bug 

1. Try refreshing the data and loading it into the data model and check the values in frontend 

2. Duplicate the query and apply the same filter again. 

3. Try clearing the data cache located under the below setting

JaiRathinavel_0-1731860875987.png

 

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Thanks, i think it is a bug as it is not in frontend. 

hnguy71
Super User
Super User

Hi @Anonymous 

That's possible.

 

See my sample below:

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCjdUitUBUkZgyjk/pzQ3z8jcWCk2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Week = _t]),
    
    // Step 1: Start with a sub-query to filter rows where Week starts with "Column"
    FilteredRows = Table.SelectRows(Source, each Text.StartsWith([Week], "Column")),
    
    // Step 2: Extract numerical part from "ColumnXXX"
    ExtractNumber = Table.AddColumn(FilteredRows, "NumericValue", each Number.FromText(Text.AfterDelimiter([Week], "Column")), type number),
    
    // Let's find  the max value
    FindMax = List.Max(Table.Column(ExtractNumber, "NumericValue")),

    // Step 4: Refer back to step before the sub-query and filter out the max value
    DynamicFilter = Table.SelectRows(Source, each [Week] <> "Column" & Text.From(FindMax) )
in
    DynamicFilter

 


Input:

hnguy71_1-1731769910404.png

 

 

Output (only filtering out max value for "column")

hnguy71_2-1731769919556.png

 

Here's an alternate solution that looks for a pattern:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMtENNzBUitWBc4zAHOf8nNLcPCNzY6XYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Week = _t]),
    
    // Step 1: Let's check for a pattern
    AddPatternCheck = Table.AddColumn(Source, "IsMatch", each 
        
        // check for length of string
        Text.Length([Week]) = 8 and

        // is the first 4 a numeric value?
        Text.Select(Text.Start([Week], 4), {"0".."9"}) = Text.Start([Week], 4) and

        // how about the last 2?
        Text.Select(Text.End([Week], 2), {"0".."9"}) = Text.End([Week], 2),
        type logical
    ),

    // Step 2: Keep rows where pattern matches
    FilteredTable = Table.SelectRows(AddPatternCheck, each [IsMatch] = true),
    RemoveIsMatch = Table.RemoveColumns(FilteredTable,{"IsMatch"})
in
    RemoveIsMatch

 

Input:

hnguy71_3-1731770690295.png

Output:

hnguy71_4-1731770702868.png

 

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

sorry cannot understand first part of 'let' with random alphabets..

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors