Helloo all,
in a previouse thread, and with a lot of help, the following table
in an sql statement
to have the following result
Now custmization to be performed.
Lets say i have more entities.
What i need to get as result is
Where x , y , z , v are amounts of each guy in all other entities. ie: entities left, other than 1.
Any suggestions
in a previouse thread, and with a lot of help, the following table
Code:
------------------------------- Desc | Entity | Name | rate | qty --------------------------------- xxxx 1 Mark 100 1 xxxx 2 Mark 100 2 xxxx 1 Joe 100 3 xxxx 2 Kive 100 4 xxxx 1 Ben 100 5 xxxx 1 Ben 100 6 -----------------------------------
Code:
TRANSFORM Sum([rate]*[qty]) AS Expr1 SELECT TEST.name FROM TEST GROUP BY TEST.name ORDER BY TEST.Name DESC PIVOT TEST.entity;
Code:
========================== Names | 1 | 2 ========================= MARK 100 0 KIVE 0 400 JOE 300 0 BEN 1100 0
Lets say i have more entities.
What i need to get as result is
Code:
========================== Names | 1 | ========================= MARK 100 x KIVE 0 y JOE 300 z BEN 1100 v
Any suggestions
Comment