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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Antoinette123
Helper I
Helper I

Separating columns in Power Query

Hi! There is a pivot table. How to separate the column "Plan-Fact" (that has options -kinda filters 'Plan', 'Fact' inside of it) into 2 separate columns named "Plan" and "Fact"?

1000035577.jpg

13 REPLIES 13
Anonymous
Not applicable

Hi @Antoinette123 ,

 

Is your problem solved? If not, can you provide me with some of what it looks like in your Power Query?

It would be nice to have a more detailed description of the problem, thank you.

When you provide screenshots, please protect your privacy.

 

Best Regards,

Stephen Tao

 

ahadkarimi
Solution Specialist
Solution Specialist

Hey @Antoinette123, try and let me know if there is any problem.

Load Data into Power Query.
Select "Plan-Fact" Column.
Transform → Split Column → By Delimiter (choose appropriate delimiter).
Rename Columns to "Plan" and "Fact".
Close & Load.

I've tried that, it doesn't do what I need, unfortunately. Cause the whole Plan/Fact column has only 2 possible values: either "Plan" or "Fact", not 2 values to separate them by  delimiters

@Antoinette123 try this way and let me know if there is any issue:

Select "Plan-Fact" and any key columns.
Go to Transform → Pivot Column.
Pivot "Plan-Fact", choose your values column, set to "Don’t Aggregate".
Hit Close & Load.

No, also not that. I got something strange 🙂

@Antoinette123 Could you explain it in more detail, or provide a better example, or if possible, provide and share a part of the sample file so that I can help better?

Where can I send you the file/mail?

you can use one drive or send it to [email protected]

Thank you! I sent the file. In the file the "plan-fact" column is kinda a filter: you'll get a column or both columns depending on what you choose.Instead, I need 2 separate columns, so I can do some calculations, like fact devideved by plan etc.

@Antoinette123, do you load this Excel file in Power BI?
I see that it creates 2 different columns for plan and fact.

ahadkarimi_1-1723611018338.png

 

 

No, it was an ordinary table, then I used power query to create a pivot table. I was told to create a table similar to what I did, but with 2 separate columns.

I selected "Plan-Fact" and Month columns. Went to Transform → Pivot Column. Pivot "Plan-Fact", set to "Don’t Aggregate". And in the final table there was only 1 column, not 2 separate "plan" and "fact" columns

@Antoinette123c, can you send another photo like the one below and explain a bit more clearly?

ahadkarimi_0-1723609228411.jpeg

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.