Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I have a question about creating columns.
I have a csv file with 3 columns:
1) word
2) type
3) number
Example:
name yes /no number
dennis yes 41
james yes 28
dennis no 39
james no 39
I want to clean up the file, and create extra columns
name yes no
dennis 41 39
So basically, dedupe the names, and add the number values in seperate columns.
Thanks,
Dennis
Solved! Go to Solution.
Pivot the yes/no column. It's in Power Query on the Transform tab
Hello @Dennis08 ,
To achive this you can use Power Query, Please lod the data in Power Query and follow the below steps.
1. In the Power Query Editor, make sure the columns are named as: word , type and number by double clinking on the cloumn header.
2. Select the type column (which contains "yes" or "no").
3. Go to Transform > Pivot Column
4.In the Values Column dropdown, select number
5. This will create two columns: one for "yes" and one for "no".
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
go to Transform Data to open Power Query Editor.
Select yes/no and click on pivot column > in the popup select values column as number.
If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
go to Transform Data to open Power Query Editor.
Select yes/no and click on pivot column > in the popup select values column as number.
If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Hello @Dennis08 ,
To achive this you can use Power Query, Please lod the data in Power Query and follow the below steps.
1. In the Power Query Editor, make sure the columns are named as: word , type and number by double clinking on the cloumn header.
2. Select the type column (which contains "yes" or "no").
3. Go to Transform > Pivot Column
4.In the Values Column dropdown, select number
5. This will create two columns: one for "yes" and one for "no".
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
Pivot the yes/no column. It's in Power Query on the Transform tab
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
51 | |
39 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |