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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Rudy123
Frequent Visitor

Power BI - Split one cell into multiple columns

Dear All, 

 

How can I transform the variable BA in the left table to the wide format in the right one using Power BI?

 

Rudy123_0-1725970076828.png

 

Many thanks in advance. 

 

Rudy

1 ACCEPTED SOLUTION
lkalawski
Super User
Super User

Hi @Rudy123 ,

To achieve this, use Power Query and follow these steps:

1. Split Column BA by Delimiter to rows (not columns!)

2. Add Custom Column: Custom = 1.

3. Pivot columns: BA and Custom. 

4. IN the Pivoted Column option change the Aggreate Value Function to Count(ALL) to receive zeros.

lkalawski_1-1725971749976.png

The result:

lkalawski_2-1725971766086.png

 

PBI_SuperUser_Rank@1x.pngMemorable Member | Former Super User
If I helped, please accept the solution and give kudos! 
Linkedin

 

 

 

 

View solution in original post

3 REPLIES 3
Rudy123
Frequent Visitor

Thanks lkalawski

 

Your solution works fine and I was surprised of how powerful and handy Power BI is for this kind of issues. 

Dear All, 

 

I would have a question related to this situation.

 

Rudy123_1-1731429905154.png

 

How can I create a pie chart for the frequency of each basket category on the total ( 5 items) with a slider to select across the categories (ANIMAL, FISH, VEGETAGLE)?

 

My initial situation is that on the left table for which I create the split to multiple columns. Is there a way to insert a filter/slider in a visual for "Contain the text FISH" so that one can avoid the transformation step?

 

Many thanks in advance!

 

Rudy

lkalawski
Super User
Super User

Hi @Rudy123 ,

To achieve this, use Power Query and follow these steps:

1. Split Column BA by Delimiter to rows (not columns!)

2. Add Custom Column: Custom = 1.

3. Pivot columns: BA and Custom. 

4. IN the Pivoted Column option change the Aggreate Value Function to Count(ALL) to receive zeros.

lkalawski_1-1725971749976.png

The result:

lkalawski_2-1725971766086.png

 

PBI_SuperUser_Rank@1x.pngMemorable Member | Former Super User
If I helped, please accept the solution and give kudos! 
Linkedin

 

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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