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
Anonymous
Not applicable

Pivot columns

I created a custom column for monthly work hours. I also created a custom column to concatenate 3 columns into one with a hyphen as a separator between text strings. I need to pivot the monthly work hours (shown below) but they are not visible when I go to Edit Queries. Do I have to re-create both columns in the Query Editor in order to pivot them? If so, could you tell me how to create a concatendated column in Query Editor? It was super easy on the data table view but I can't figure it out in Query Editor.

 

Pivot.PNG

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

It seems that you created the calculated columns with dax expression in Data view. 

 

Actually, we cannot see the calculated column in Editor Queries. We could see the custom columns created in Query Editor.

 

There is something different between calculated column and custom column.

 

In addition to the difference of language used to create them, there are also others different parts between them.

We could take a look at the article Calculated columns in Power BI Desktop, which explains the main difference between those two columns.

 

If you want to pivot the monthly work hours in Query Editor, you need to create the custom columns in Query Editor.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,



I created a custom column for monthly work hours. I also created a custom column to concatenate 3 columns into one with a hyphen as a separator between text strings. 

Did you create all of the columns in Query Editor? And you cannot see the columns when I go to Edit Queries?

 

If it is convenient, could you share the screenshots about the Applied steps in Query Editor?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

The concatenate column for Contractors and the Monthly Remaining Hours were all created using custom column in the Data view and not in Query Editor.

 

Query Editor.PNG

 

Hi @Anonymous,

 

It seems that you created the calculated columns with dax expression in Data view. 

 

Actually, we cannot see the calculated column in Editor Queries. We could see the custom columns created in Query Editor.

 

There is something different between calculated column and custom column.

 

In addition to the difference of language used to create them, there are also others different parts between them.

We could take a look at the article Calculated columns in Power BI Desktop, which explains the main difference between those two columns.

 

If you want to pivot the monthly work hours in Query Editor, you need to create the custom columns in Query Editor.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

In the query editor, go to "Add Column" -> Custom Column. This will allow you to reference the (rows from each) column just like in the data view.

You can also try "Add Column" -> Column From Example instead. There you fill in the desired result of some rows and the engine will try to find out the correct syntax by itself.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.