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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Big table with multiple fields

Hi

 

I have a big table (about 8 millions records), and this table has 10 fiels that indicate if a customer has or not a specific product. This is an Example:

 

Table1:

HasProductA | HasProductB | HasProductC  | HasProductD | HasProductE...

         yes        |      no            |       no             |        yes          |         no...

 

 

I would like to have a Slicer with all the products, so users are able to select one or more products. Currently, I have multiple slicers that looks awful.

I think that that will be possible only if I have all this fields combined into one... but How should I do that?

Thanks

Thanks

1 ACCEPTED SOLUTION

If you want to have this in once slicer, the relevant column names must become values in a column.

To achieve this you must unpivot them. 

Then delete the rows with  "no" .

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

4 REPLIES 4
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous , 

Do you also have a products table? We will need to see more. If you do, are the customers and products table related?

 

Thanks,

Nathaniel





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

Proud to be a Super User!




Anonymous
Not applicable

Hi Nathaniel

 

No, I don't have a product table. I have a big table that is denormalized, i.e Products are in the same table that customers.

Should I try to normalize it? Or it may be dangerous?

 

Thanks

@Anonymous ,

 

Lets reach out to @ImkeF . She is a wiz!

 


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




If you want to have this in once slicer, the relevant column names must become values in a column.

To achieve this you must unpivot them. 

Then delete the rows with  "no" .

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.