Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hello , I have 2 table :
HSBC table ,
| Name | Hsbc Identifier | Units | 
|---|---|---|
| ANJUERRE SOPHIE | 11100_FRA0000990158 | 1222 | 
| ANJUERRE SOPHIE | 11100_FRA0000980114 | 280 | 
Pivot Table
| NAME | Hsbc Identifier 1 | Hsbc Identifier 2 | 
|---|---|---|
| ANJUERRE SOPHIE | 11100_FRA0000990158 | 11100_FRA0000980114 | 
I want to visualise This
| NAME | Hsbc Identifier 1 | Hsbc Identifier 2 | Sum(Units) | 
|---|---|---|---|
| ANJUERRE SOPHIE | 11100_FRA0000990158 | 11100_FRA0000980114 | 1502 | 
Some One can help me please , i debute in QV
please See attached
 
					
				
		
 christophebraul
		
			christophebraulHi,
// You can do something like this :
Load your first table :
TABLE:
LOAD Name,
Hsbc_identifier,
...,
Units
FROM ... ;
If you Want to sum the units and have only one line per Name value, you'll have to "group by" :
NoConcatenate
RESULT:
LOAD Name,
Sum(Units) as Units
Resident TABLE Group By Name;
drop table TABLE;
// Left join additionnals infos from another file :
Left Join
LOAD Name, // Will left join on this field
Hsbc_Identifier_1,
Hsbc_Identifier_2
FROM ... ,
 
					
				
		
Hey Christophe ,
I dont intersteand very well yourt solution 
 
					
				
		
Can U give me a example please
I attached , a Qv and xls file
 
					
				
		
Please check the attachment is it serves your purpose.
 
					
				
		
Hey Sudoh
Your script doesnt work when  i add a rows to my pivot table 
 
					
				
		
Does it give any error?
Can you check the path of your files? - I worked out the script based on my local path - however, I changed the path to yours while reposting.
Alternatively, can you share a slightly bigger data - maybe 4 or 5 rows?
 
					
				
		
Hi Subodh ,
I employeed your solution with a other project , but its doesnt work , do you have a subjection ? Please see the attachement thank u a lot
 SunilChauhan
		
			SunilChauhan
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		see for ur sample data u can implement below
tab1:
Load * inline [
Name, HsbcIdentifier, Units
ANJUERRE SOPHIE, 11100_FRA0000990158 ,1222
ANJUERRE SOPHIE, 11100_FRA0000980114, 280
];
[Pivot Table]:
Load * inline [
NAME ,Hsbc Identifier 1 ,Hsbc Identifier 2
ANJUERRE SOPHIE, 11100_FRA0000990158, 11100_FRA0000980114
];
left Join
Load Name,
Sum(Units) as Units
resident tab1 group by Name;
drop table tab1;
u can apply same logic on xls data.
see the attached file
hope this helps
 
					
				
		
Hi Sunil ,
i want something like this , For each CCN , show the quantite of parts
