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 guys
I have the following table
ClientCode | Invoice Email 1 | Invoice Email 2 | Invoice Email 3 | Invoice Email 4 | Invoice Email 5 | Invoice Email 6 |
comp1 | userabc@comp1.com | userdea@comp1.com | user31@comp1.com | user14@comp1.com | ||
comp2 | user4@comp2.com | user1@comp2.com | ||||
comp3 | ||||||
comp4 | user11@comp4.com | user2@comp4.com | ||||
comp5 | userbob@comp5.com | |||||
comp6 | userval@comp6.com | user26@comp6.com | ||||
comp7 | user19@comp7.com | |||||
comp8 | ||||||
comp9 |
And I want to use M Query to reduce the number of columns I've got without losing any email addresses.
Desired result should look like the below
ClientCode | Invoice Email 1 | Invoice Email 2 | Invoice Email 3 | Invoice Email 4 |
comp1 | userabc@comp1.com | userdea@comp1.com | user31@comp1.com | user14@comp1.com |
comp2 | user4@comp2.com | user1@comp2.com | ||
comp3 | ||||
comp4 | user11@comp4.com | user2@comp4.com | ||
comp5 | userbob@comp5.com | |||
comp6 | userval@comp6.com | user26@comp6.com | ||
comp7 | user19@comp7.com | |||
comp8 | ||||
comp9 | usertom@comp9.com |
I've tried using conditional columns but can't wrap my brain around it.
Anyone know how to do this please?
Solved! Go to Solution.
Hi,
You can obtain this applying the steps indicated in the attached file
If this post is useful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !
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 |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |