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