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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ERing
Post Partisan
Post Partisan

How can I return a result for each value in a string?

Somewhat new to this, so I may not be using the correct terms. I have data like shown in Column 1 and I need to be able to show a table that would be the Return Column. So basically for the row with Marketing Finance, I need a new column that will show me a row for Marketing and a row for Finance.

Is this possible?

Capture_2.PNG

 

Capture_3.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ERing ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) Click "transform data" to enter the power query editor -> split the column ->choose all columns -> Unpivot columns->Remove redundant columns.

vtangjiemsft_0-1702456353641.pngvtangjiemsft_1-1702456368138.png

vtangjiemsft_2-1702456463505.png

vtangjiemsft_3-1702456538501.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @ERing ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) Click "transform data" to enter the power query editor -> split the column ->choose all columns -> Unpivot columns->Remove redundant columns.

vtangjiemsft_0-1702456353641.pngvtangjiemsft_1-1702456368138.png

vtangjiemsft_2-1702456463505.png

vtangjiemsft_3-1702456538501.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

ToddChitt
Super User
Super User

You have 3 input rows and 4 output rows. Not sure what input goes with what output. Can you put the data side by side? Is the output supposed to be in the same table as the input?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





@ToddChitt  Apologies. I used the wrong example for the return column. My fact table has 3 rows and I need to be able to produce a visual that be the returns a row for Marketing AND a row for Finance from row 3.

 

Capture_2.PNG

 

Capture_3.PNG

I still don't understand how the input is supposed to translate to the output. 3 rows in, 4 rows out. Can you sketch it out in Excel, maybe, and post a screenshot?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.