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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Analitika
Post Prodigy
Post Prodigy

Slicer filtered "IS no blank" show blanks

I filtered slicer "IS no blank" but Blank still exist,

2020-06-19_131658.png

when remove filter apears two blanks

2020-06-19_131823.png

 

how to prevent this?

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Analitika , 

Yes, as mentioned above, this might be cuased by " " or ""(when it show null in table, which could filter by "is no blank"). You could try to use isblank() to see whether this is blank. You could try below M code in your sample, then use filter like below

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WUtJRMlSK1YlWUgCyjMCs4uJiINsYzE5MBDJNlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [test = _t, id = _t]),
    #"Replaced Value" = Table.ReplaceValue(Source,each [test],each if Text.Trim([test])="" then null else [test], Replacer.ReplaceValue,{"test"})
in
    #"Replaced Value"

760.PNG

You could refer to my sample for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
dax
Community Support
Community Support

Hi @Analitika , 

Yes, as mentioned above, this might be cuased by " " or ""(when it show null in table, which could filter by "is no blank"). You could try to use isblank() to see whether this is blank. You could try below M code in your sample, then use filter like below

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WUtJRMlSK1YlWUgCyjMCs4uJiINsYzE5MBDJNlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [test = _t, id = _t]),
    #"Replaced Value" = Table.ReplaceValue(Source,each [test],each if Text.Trim([test])="" then null else [test], Replacer.ReplaceValue,{"test"})
in
    #"Replaced Value"

760.PNG

You could refer to my sample for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Analitika , check do you data have blank space too " "

check len of data

new column = len([column])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.