Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Demha_2022
Contributor
Contributor

Order MONTH

Hello all,

I am developping an application with qlikview , i'am beginner , i have a problem.

My problème is , i hope to order my MONTH , for exemple : 

I want to have by order en qlikview : Janvier, Février, Mars , Avril , Mai , Juin , Juillet , Aout , Septembre , Octobre, Novembre Décembre.

 

Please can you hel me ?

Demha_2022_0-1657220403279.png

 

Labels (4)
2 Replies
MarcoWedel

can you post the relevant part of your script that generates the MOIS field?

Demha_2022
Contributor
Contributor
Author

Hello, 

Thank you your answer , this is the part of my script that generates the MOIS field.

The MOIS field is MONTH

 

mapMonth:
mapping load

AutoNumber('S'&Week(DT_CLOTURE,5,0,4)&Year(DT_CLOTURE)) AS IDMonth
,Max(Month(DT_CLOTURE))
//,DT_CLOTURE
FROM [$(p_Path_Data_QvdDWH)Action.qvd] (qvd)

Group by AutoNumber('S'&Week(DT_CLOTURE,5,0,4)&Year(DT_CLOTURE));

Action:

LOAD

DT_CLOTURE ,

  Week(DT_CLOTURE, 5,0,4)                                   AS SEMAINE_NORMALE,
'S'& Week(DT_CLOTURE,5,0,4)                              AS SEMAINE,


pick(ApplyMap('mapMonth',
Autonumber('S'& Week(DT_CLOTURE,5,0,4) &Year (DT_CLOTURE))),
'Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre')    AS "MONTH",

FROM [$(p_Path_Data_QvdDWH)Action.qvd] (qvd);

ApplyMap('mapMonth',
Autonumber('S'& Week(DT_CLOTURE,5,0,4) &Year(DT_CLOTURE))) AS "NUM_MONTH"

 

Demha_2022_1-1657287723948.png