Bonjour,
Dans l’Éditeur Power Query, j’ajoute une colonne et je voudrais effectuer les tests suivants :
1. if [Type]<>"Verificatietaken" then "NO"
2. if ([Status]<>"TO_HANDLE" and [Type]="Verificatietaken" and [Status]<>"IN HANDLING") and [#"Datum afhandeling (status)"] <> null and (Duration.Days(Duration.From([#"Datum afhandeling (status)"]-[Eind datum]))<=0) then "YES"
3. if ([Status]<>"TO_HANDLE" and [Type]="Verificatietaken" and [Status]<>"IN HANDLING") and [#"Datum afhandeling (status)"] <> null and (Duration.Days(Duration.From([#"Datum afhandeling (status)"]-[Eind datum]))>0) then "YES_LATE"
Comme vous le constatez, la seule différence entre les tests 2 et 3 se situent au niveau du délai : Duration.Days(Duration.From([#”Datum afhandeling (status)”]-[Eind datum]))<=0 OU Duration.Days(Duration.From([#”Datum afhandeling (status)”]-[Eind datum]))>0.
Pensez-vous qu’il soit possible de faire tout tenir dans une seule ligne de commande ?