Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Bonjour,
Le titre n'est pas trés explicite je vous l'accorde 😉
Mon problème est que je souhaiterait récupérer des montants stockés dans des colonnes MontantJanvier,MontantFévrier, MontantMars... et les remettre dans une seule zone en affectant mannuelement la période genre MontantJanvier -> period = 01, MontantFévrier -> period = 02.... J'ai deja dans cette table l'année du coup je pourrais simplement faire mes filtres.
Voici un exemple de ma source :
Voila le script de chargement :
FAGLFLEXT:
LOAD
Year,
Account_Number,
Company
Report_A_Nouveau,
Montant01,
Montant02,
Montant03,
Montant04,
Montant05,
Montant06,
Montant07,
Montant08,
Montant09,
Montant10,
Montant11,
Montant12,
Montant13,
Montant14,
Montant15,
Montant16
FROM
$(QVD_EXTRACT_DIR)FAGLFLEXT.QVD
(qvd);
Si quelqu'un à une idée c'est sympas !!!
Merci d'avance !!
crosstable
crosstable (m, s, 4)
LOAD
*
FROM
$(QVD_EXTRACT_DIR)FAGLFLEXT.QVD
(qvd);
Bonjour,
Je ne sais pas si c'est très orthodoxe mais tu pourrais tenter de charger plusieurs fois ta table en la concatenant à chaque période-montant. Par exemple :
FAGLFLEXT:
LOAD
Year,
Account_Number,
Company
Report_A_Nouveau,
Montant01 as Montant
From ....
Concatenate
LOAD
Year,
Account_Number,
Company
Report_A_Nouveau,
Montant02 as Montant
Etc jusqu'au montant 15
A voir ....
Merci le crosstable marche niquel !!
Bonne journée!