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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.