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
MattN4
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
v-sihou-msft
Employee
Employee

@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,

Greg_Deckler
Super User
Super User

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!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.