Forum Discussion
jz7ssr
7 years agoRegular Visitor
Looping through table to create another one
Hi, I'm have a table which has been setup as follows: PostCode CompanyA CompanyB CompanyC CompanyD 3015 Yes Yes No No 3016 No Yes No Yes 3017 No Yes Yes Yes 3018 N...
- 7 years ago
hi, jz7ssr
You can use Unpovit Function in Edit Queries and then filter Value is Yes as below:
Step1:
Select Column CompanyA, CompanyB, CompanyC, CompanyD then click Unpovit Columns
Step2:
Filter the Value is "Yes"
Result:
Best Regards,
Lin
avknishokpbi
7 years agoFrequent Visitor
Hi,
You un-pivot in the edit query window.
Go to the section "Unpivot; Turning Columns to Rows; Name, Values" in below link you will find the step by step process
http://radacad.com/pivot-and-unpivot-with-power-bi
- jz7ssr7 years agoRegular Visitor
Thankyou! This does it all in one click, I was trying to write a complicated looping routine.
Perfect thanks.