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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

How to create a Pivot table on calculated column - Please help me..It is urgent

Hi,

I have 2 calulated collumn in my Data model, and I want to create a seperate Pivot table in my data model with those 2 column , but as the calculated column is not visible at 'Edit Queries' window, I cannot select them to create Pivot table.

 

So I decide to create a Pivot table using Dax , So any idea how we can do that? Please share some code to do that.

 

1 ACCEPTED SOLUTION

@Anonymous ,

 

You may use SELECTCOLUMNS Function (DAX) and UNION Function to add a calculated table.

https://community.powerbi.com/t5/Desktop/Column-Header-names-should-contain-current-month-dynamically/td-p/289909

Community Support Team _ Sam Zha
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
autodafe
Resolver I
Resolver I

Why don't you use a Matrix ?

Anonymous
Not applicable

Hi,

I want to create a seperate table in my data model with 2 calculated columns, but not on the visual chart matrix. So please help me how can I do that with the help of DAX.

 

For this I have created a DAX like below , but I am getting error on this:

Table2 =
var Delivery = CROSSJOIN(ROW("Type","Time To Delivery"), VALUES(Data[Time_To_Delivery]))
var Sent = CROSSJOIN(ROW("Type","Time To Send"), VALUES(Data[Time_To_Send]))
return UNION(Delivery, Sent)

@Anonymous ,

 

You may use SELECTCOLUMNS Function (DAX) and UNION Function to add a calculated table.

https://community.powerbi.com/t5/Desktop/Column-Header-names-should-contain-current-month-dynamically/td-p/289909

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

How would i use for measures rather than caculated columns?


@v-chuncz-msft wrote:

@Anonymous ,

 

You may use SELECTCOLUMNS Function (DAX) and UNION Function to add a calculated table.

https://community.powerbi.com/t5/Desktop/Column-Header-names-should-contain-current-month-dynamically/td-p/289909


 

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.