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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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