Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Maximize ROI with Qlik Professional Services – Expert Guidance, Faster Results: Explore Qlik Services
cancel
Showing results for 
Search instead for 
Did you mean: 
CG2447
Contributor
Contributor

Mon graphe n'affiche pas la valeur par mois mais qu'une seule valeur...

Bonjour,

Je souhaite afficher une valeur dite "DN" sur un graphe mois par mois. 

Idéalement cette valeur devrait être la valeur calculé (aucune somme, c'est un %) sur les derniers jours ouvrés du mois (pour avoir un historique de fin de mois), cependant je suis bloquée...

Sur ma représentation je choisi une date : Cal_Date (ou j'ai dispo Cal_working_Date)

J'ai mis en ligne pour le moment : =lastworkdate (Cal_Working_Day,5)

J'ai mis en mesure : 

{<Cal_Working_Day>} (Count( {< Ref_Mandatory={1},ND_Presence={1},
ND_Id={"=min($(vAllowOnlyND)ND_Last_Reg) - min($(vAllowOnlyND)total<Cust_Id> ND_Last_Reg) =0"}
>}
ND_Line_Id
)
/
Count( {< Ref_Mandatory={1},
ND_Id={"=min($(vAllowOnlyND)ND_Last_Reg) - min($(vAllowOnlyND)total<Cust_Id> ND_Last_Reg) =0"}
>}
ND_Line_Id))
 
Mon graphe n'affiche pas la bonne date et n'affiche pas l'historique....
Avez vous une idée?
 
Merci beaucoup!!
Labels (4)
1 Reply
F_B
Specialist II
Specialist II

Bonjour @CG2447 ,

first you may need to adjust the Cal_Working_Day field to ensure it properly represents the working days.

 

Check that you are correctly identifying the last working day of each month. Try with: 

lastworkdate(MonthEnd(Cal_Date), Cal_Working_Date)

 

So your measure should be something like this:

Count(
{<
Cal_Working_Day={"$(=lastworkdate(MonthEnd(Cal_Date), Cal_Working_Date))"},
Ref_Mandatory={1}, ND_Presence={1},
ND_Id={"=min($(vAllowOnlyND)ND_Last_Reg) - min($(vAllowOnlyND)total<Cust_Id> ND_Last_Reg) =0"}
>}
ND_Line_Id
)
/
Count(
{<
Cal_Working_Day={"$(=lastworkdate(MonthEnd(Cal_Date), Cal_Working_Date))"},
Ref_Mandatory={1},
ND_Id={"=min($(vAllowOnlyND)ND_Last_Reg) - min($(vAllowOnlyND)total<Cust_Id> ND_Last_Reg) =0"}
>}
ND_Line_Id
)

 

Hope this helps you