I have a dimension in a pivot table based on the following expression:
=chr(39) & Week
The problem is that this generates 'allocated memory exceeded' error. Removing the expression from the dimension helps correcting the error.
I'm using the desktop version.
Unfortunately, the dimension has to be formated (therefore, the expression). Can you help please ?
Often it's useful to create all needed date-fields within the master-calendar even if it meant to keep several week- or month-fields there instead of formatting/adjusting them within UI.
If your aim of formatting this field is to avoid an automatically interpreting by an excel-export you could also add a non visible space, for example: chr(8203).
Try to replace the week command without argument, with week('yyyy-mm-dd').
This command, chr(39) & week('2019-01-18',0,1), would generate a string like this: '3, that indicate the 3rd week from January.
Here is the complete command syntax.