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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
LEBRETON35
Contributor
Contributor

FILTRE SUR UNE VARIABLE NON OPERATIONNEL

Bonjour 

j ai une condition de date dans un where qui ne marche pas j'ai essayé plein de solutions rien n'aboutit  la voici 

where Date(Date#(CAPA_MOIS,'dd/mm/yyyy'))=Date(Date#('$(vMoisReport_Suivant)','dd/mm/yyyy'))

ma dernière tentative est sous cette forme avez vous des idées ?

Labels (1)
2 Replies
Daniel_Castella
Support
Support

Hi @LEBRETON35 

 

Probably or the field CAPA_MOIS or the variable vMoisReport_Suivant doesn't have the format dd/mm/yyyy

 

When you perform an operation like this Date(Date#(CAPA_MOIS,)), the format related to Date# needs to be the current format of the field, and the one associated to Date is the one you want it to be transformed.

For example, if I have a date like 2026-01-01 and I want it to transform to 01/01/2026 I need to write it like this:

Date(Date#(CAPA_MOIS,'yyyy-mm-dd'),'dd/mm/yyyy')

 

Hence, my recommendation is to review this. If the formats are correct, could you, please, provide more information like a data sample example, how the variable vMoisReport_Suivant is created... etc?

 

Kind Regards

Daniel

LEBRETON35
Contributor
Contributor
Author

bonjour 

merci pour votre retour mais j'ai déjà testé ce type de solution et rien n'y fait 

j'ai du créer une autre table temporaire ou ma condition a fonctionné pourquoi sur celle ci plus que l'autre c'est un grand mystère !! (solution palliative)

bien cordialement

Yann