Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 MeeraAgrawal
		
			MeeraAgrawal
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi All,
I am new in Qlik sense . I want to assign variable name to measure like below expression but it's showing an error can you please help me this?
Revenue=Sum([Unit Sold])*sum([Price per unit])
 jwjackso
		
			jwjackso
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 MeeraAgrawal
		
			MeeraAgrawal
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Jwjackso
Thanks for your prompt response, but it's showing an error please find the attached screen shot for your reference.
 jwjackso
		
			jwjackso
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Use the Let command in the script, not the chart expression, to define the variable. Then reference the variable in the chart.
 MeeraAgrawal
		
			MeeraAgrawal
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		From where can I find script option to write that measure? Actually I don't have desktop edition so I m working as online ..please find attached reference screenshot
 jwjackso
		
			jwjackso
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		I see from your screenshot that you are using the Cloud version. The script is accessed through the data editor, but you probably want to use the Variable dialog. Define the variable and then reference the $(variable name) in chart expressions.
