Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am wanting to concatenate multiple 'MRP D/C Dates' into one cell in order to only have 1 row per member in my pivot table. In my example there are only 2 dates, but there can be more than that. I have tried creating variables and combining those but that gives me errors in my calculated dimension. For instance, in the below example I would like to see '11/28/2016, 3/29/3016' in one row rather than it creating 2.
Any help is appreciated!
My bad, replace and with a comma
Aggr(Concat(DISTINCT {<MeasureID = {'MRP'}, Gap = {'>0'}>} EVENT_DATE, ','), MEM_ID)
Hello
Maybe
load
Concat(MRP D/C Dates,' ') as MRP D/C Dates
Resident Table;
did you try with the concat function?
concat(yourdatefield, ',')
= Concat('MRP D/C Dates', ',')
I have tried that and am getting "// Error in calculated dimension."
I have tried that and am getting "// Error in calculated dimension."
Can you paste your calculated dim expression here you are using?
Sure. Here is a screenshot actually.
Can you try like:
= Aggr(Concat(DISTINCT EVENT_DATE, ','), EVENT_DATE)
Thank you. I think I am getting there. I tried Aggr(Concat(DISTINCT EVENT_DATE, ','), MEM_ID) and that concatenated all of the event dates as it should. However, I am only needing to concatenate event dates where MeasureID = 'MRP' and Gap >0. I tried =if(match(MeasureID, 'MRP_MRP') and Gap > 0, Aggr(Concat(DISTINCT EVENT_DATE, ','), MEM_ID)) and it did not work. Your help is appreciated!