1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
NoConcatenate
BudgetDataCE_tmp:
LOAD
Annee as AnneeCE,
Mois as MoisCE,
DateComptable as Ventes_DateComptableCE,
AXE0 as %KEY_AgenceCE,
if(SENS = 'D', MontantBudget*-1, MontantBudget) as BudC210_1,
CSTE as %KEY_Societe
FROM
[C:\Qlikview_directory\5-QVD\Queguiner_MtxLMO\DataBudget_2021.qvd]
(qvd)
where (
Annee='2021' and left(NCPA,3) >= '600' and left(NCPA,3) <='608' and AXE1 = 'C'
and (AXE5='2' or AXE5='9' or AXE5='S') and AXE4 <> '18'
and MonthName(DateComptable) * 1 = $(vMois_num)
)
;
Concatenate(BudgetDataCE)
load
AnneeCE,
MoisCE,
Ventes_DateComptableCE,
%KEY_AgenceCE,
sum(BudC210_1) as BudC210,
%KEY_Societe
Resident BudgetDataCE_tmp
Group By Ventes_DateComptableCE,%KEY_AgenceCE; |
Partager