Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
| key | medtype | Transtype | depensed | wasteamt | |
|---|---|---|---|---|---|
| 0123456 | Zanax | remove | 1.5 | - | |
| 0123456 | Zanax | 
 | - | 1.2 | 
this is how the file looks right now.
I am trying to get the file looking like this:
| key | medtype | depensed | wasteamt | 
|---|---|---|---|
| 0123456 | zanax | 1.5 | 1.2 | 
This is the output i want in qlikview.
I have been trying model the the file above, to look like the file below. I have not been successful in doing that. Any help would be gladly welcomed.
Thank you experts.
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		May be this:
LOAD key,
medtype,
Sum(depensed) as depensed,
Sum(wasteamt) as wasteamt
FROM ...
Group By key, medtype;
 
					
				
		
 vishsaggi
		
			vishsaggi
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Script level you can use Sunny's script.
Load the script as is and
In the chart you can use straight table and add
Dimensions: key, medtype
Expressions: = Sum(depensed)
= Sum(wasteamt)
Like:
 saimahasan
		
			saimahasan
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		may be you can use
sum(if(isnull(depensed),0,depensed))
and
sum(if(isnull(wasteamt),0,wasteamt))
in your expression window.
 
					
				
		
Thank you so much, this really helped me.
 
					
				
		
Thank you
 
					
				
		
Thank you
