Forum Discussion
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.
4 Replies
- autodafe
Resolver I
Why don't you use a Matrix ?
- AnonymousNot 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)- v-chuncz-msft
Community Support