Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
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 ?
Thanks.
Elina
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).
- Marcus
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.
Marco
Yes, that's correct.
And it happens only in pivot table. If I change to simple table than it works fine.
Do you need to get the right week within that date?
Marco
No, I only need to format the value of the dimension so that it is displayed differently within this chart.
Try to post the screenshot\script you are using!!
Marco
Here are the screenshots.