Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Create Table - How to go to the next column (Using Distinct)

Hello,

 

I would like to create a Table with three column,

 

Data[TripReference] (Distincted)

Data[DaysAway]

Data[CostCenterCode]

 

Tried ADDCOLUMNS, but I think I'm not getting the systax right.

 

 
NewData = ADDCOLUMNS(
"TripReference" ; DISTINCT(VALUES(Data[TripReference])) ;
"DaysAway" ; VALUES(Data[DaysAway]);
"CostCentre" ; VALUES(Data[CostCenterCode])
)
 

 

Please advise..

2 Replies