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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
woojacky
Regular Visitor

Filtering Data for visualization

Hi Folks, needs some advice. I have a table that look something like below

 

Customer NameLabel 1Label 2Label 3Label 4Label 5
Customer AMicrosoft"blank"Customer ATeam ACloud
Customer BTeam ARedhatOn PremiseCustomer B"blank"
Customer CAppleCustomer CTeam C"blank"On Premise
Customer DOn PremiseTeam B"blank"Customer DSUSE

 

Intention is that I want to be able to use slicer to filter out information and present the corrosponding data. Example

1. Which team has been servicing which customer

2. What customer has been using which product

 

Can anyone guide me in getting this done?
Have tried looking at https://www.youtube.com/watch?v=UvvS376vYSw but my data are all strewn in 8 different columns (label 1 - label 😎 and hence it doesn't work for me.

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @woojacky ,

 

Best option appears to me is to unpivot this data and then try to identify on each line what is the type of data you are using and then pivot based on that new column. Do you have any list of the Teams and of the products?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
woojacky
Regular Visitor

Thanks for providing some guidance there. Had to read up exactly how does one unpivot in the first place. So just for reference for others who might encounter similar issue, below are broad steps that I've done.

 

1. Create an INDEX in my main table (this is to be used for table relationship at the end)

2. Create a new table

3. Duplicate the necessary columns that I need to unpivot (in my case are label, label1, label2, label3, etc), I used REMOVED OTHER COLUMNS

4. Make sure INDEX is also duplicated into this new table

5. Then choose UNPIVOT OTHER COLUMNS based on INDEX

6. Select Many to One relationship with INDEX as the unique value as reference

 

Tada.

Hi @woojacky ,

 

Sorry but I lost your previous message on the notifications I got and did not answer you. But glad you were abble to figure it out.

 

Just an adittional hint instead of duplicate you can use the reference also.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @woojacky ,

 

Best option appears to me is to unpivot this data and then try to identify on each line what is the type of data you are using and then pivot based on that new column. Do you have any list of the Teams and of the products?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Yes I have a list of teams and products. How do I unpivot as the data is in my original CSV file? I was thinking of using extract if "text" but might be too much of a hassle though

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.