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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-tangjie-msft
Community Support
Community Support

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
v-tangjie-msft
Community Support
Community Support

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.