Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
edemerdjieva
Partner - Creator
Partner - Creator

Allocated memory exceeded on dimension expression

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

1 Solution

Accepted Solutions
marcus_sommer

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

View solution in original post

12 Replies
agigliotti
Partner - Champion
Partner - Champion

What do you mean ?
With dimension Week works as expected while adding chr(39) to it do you get the error?
marco_puccetti
Partner - Creator
Partner - Creator

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

edemerdjieva
Partner - Creator
Partner - Creator
Author

@agigliotti

Yes, that's correct.

And it happens only in pivot table. If I change to simple table than it works fine.

edemerdjieva
Partner - Creator
Partner - Creator
Author

@marco_puccetti

Actually, I have a dimension where the week is format '01/2019' for the first week in 2019.
agigliotti
Partner - Champion
Partner - Champion

could you share a sample qvw to look into?
marco_puccetti
Partner - Creator
Partner - Creator

Do you need to get the right week within that date?

Marco

edemerdjieva
Partner - Creator
Partner - Creator
Author

No, I only need to format the value of the dimension so that it is displayed differently within this chart.

marco_puccetti
Partner - Creator
Partner - Creator

Try to post the screenshot\script you are using!!

Marco

edemerdjieva
Partner - Creator
Partner - Creator
Author

Here are the screenshots.