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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
sanjanarama
Resolver I
Resolver I

No data to display in table if * is used

How to show empty table when "*" is searched from search bar?

sanjanarama_0-1673513541158.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sanjanarama ,

 

Due to the design of desktop, if you want to search for "*" from the "Assigned" field, the field must contain "*" , here are my steps you can follow as a solution. 

(1) My test data is the same as yours. 

(2) Click "Enter data" to add a new table : Table(3)

vtangjiemsft_0-1673594189646.png

(3) Click "Transform data" to enter the power query editor. Duplicate a test table (Test_Table), group the new table (Table) by the "Assigned" field, and append by this field and Table (3).

You can directly open "Advanced Editor" and copy and paste the following code.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUQKikMqCVBAzILWoOD/PEcgyUIrViVYywibtBJc2xibtDJc2AbIMofJGKNoNwfKmQJYRhrwjXN4MyDLGkHeBy5sj6TdGsR8ib4FkvzEW+y2RzDdGtz8WAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, #"Parent ID" = _t, Type = _t, Assigned = _t, RelatedtoAssigned = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}, {"Parent ID", Int64.Type}, {"Type", type text}, {"Assigned", type text}, {"RelatedtoAssigned", Int64.Type}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Assigned"}, {{"Count", each _, type table [ID=nullable number, Parent ID=nullable number, Type=nullable text, Assigned=nullable text, RelatedtoAssigned=nullable number]}}),
    #"Removed Columns" = Table.RemoveColumns(#"Grouped Rows",{"Count"}),
    #"Appended Query" = Table.Combine({#"Removed Columns", #"Table (3)"})
in
    #"Appended Query"

(4)Then the result is as follows.

Picture1.png

Best Regards,

Neeko Tang

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

1 REPLY 1
Anonymous
Not applicable

Hi @sanjanarama ,

 

Due to the design of desktop, if you want to search for "*" from the "Assigned" field, the field must contain "*" , here are my steps you can follow as a solution. 

(1) My test data is the same as yours. 

(2) Click "Enter data" to add a new table : Table(3)

vtangjiemsft_0-1673594189646.png

(3) Click "Transform data" to enter the power query editor. Duplicate a test table (Test_Table), group the new table (Table) by the "Assigned" field, and append by this field and Table (3).

You can directly open "Advanced Editor" and copy and paste the following code.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUQKikMqCVBAzILWoOD/PEcgyUIrViVYywibtBJc2xibtDJc2AbIMofJGKNoNwfKmQJYRhrwjXN4MyDLGkHeBy5sj6TdGsR8ib4FkvzEW+y2RzDdGtz8WAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, #"Parent ID" = _t, Type = _t, Assigned = _t, RelatedtoAssigned = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}, {"Parent ID", Int64.Type}, {"Type", type text}, {"Assigned", type text}, {"RelatedtoAssigned", Int64.Type}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Assigned"}, {{"Count", each _, type table [ID=nullable number, Parent ID=nullable number, Type=nullable text, Assigned=nullable text, RelatedtoAssigned=nullable number]}}),
    #"Removed Columns" = Table.RemoveColumns(#"Grouped Rows",{"Count"}),
    #"Appended Query" = Table.Combine({#"Removed Columns", #"Table (3)"})
in
    #"Appended Query"

(4)Then the result is as follows.

Picture1.png

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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