cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Select many entries in a field

Hi,

 

 

I have a field which is a product catalogue, I want to filter on a few hundred products but the only way I can see is to scroll through all 5124 products and tick each of the ones I want.

 

Is there a way of importing a list from Excel on to my report so only those products are displayed?

 

Thnaks.

2 REPLIES 2
Super User IV
Super User IV

In theory, you could import the list you want from Excel into a new table. Relate that table to your other table. Then, if you create calculated columns in your new table or drop the product column from the new table into a visualization along with measures then only the columns that you want will be displayed, effectively filtering the visualizations the way that you want.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Microsoft
Microsoft

@MattN4

 

You can import the Excel List into Power BI. Select the column and "Add as New Query".

 

6.PNG

 

It will generate a List.

 

81.PNG

 

Then you just add #"Filtered Rows" step in your Power Query with List.Contains() function.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTJUitWJVnICsozALGcgyxjMcgGyTJRiYwE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Name = _t, Value = _t]),
    #"Filtered Rows" = Table.SelectRows(Source, each List.Contains(Name,[Name])),
    #"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows",{{"Name", type text}, {"Value", Int64.Type}})
in
    #"Changed Type"

 

83.PNG

 

84.PNG

 

Regards,

Helpful resources

Announcements
November Update

Check it Out!

Click here to read more about the November 2020 Updates!

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform October Community Highlights

Check out the top community contributors across all of the communities

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors