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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.