something like this ?
| COL | VAL |
| ------ | --- |
| codRep | 401, 428, 428, 464, 472 |
| Abril | 100000, 180000, 160000, 0, 0 |
| Agosto | 100000, 350000, 200000, 90000, 0 |then this is the SQL statement
SELECT'codRep'"COL", list($JUSTIFY(codRepresentante,10)) "VAL"FROM Ped.MetasRepresen where ano=2024Union All
SELECT' Abril', list($JUSTIFY(vendasAbril,10))
FROM Ped.MetasRepresen where ano=2024Union All
SELECT'Agosto', list($JUSTIFY(vendasAgosto,10))
FROM Ped.MetasRepresen where ano=2024- Log in to post comments