Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
MDE_PF
Contributor II
Contributor II

Help : Left join date max

Bonsoir à tous,

J'ai besoin de votre aide svp sur ce script qui ne me donne pas le résultat attendu.

En effet, je cherche à alimenter une colonne Flag avec un '1' à chaque fois que la date maximum pour le parc_ID est concernée.

Pourriez-vous svp m'aiguillez sur l'erreur potentiel dans mon script ??

Un grand merci !!

flag.PNG

 

noFlag.PNG

Labels (1)
  • SaaS

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

Two errors:

First, the $(max("Date Effet Releve Km")) in the where clause will not work. You cannot use aggregation functions inside dollar expansions in the script. However, I don't think that the where clause is needed: The Left Join should take care of the filtering.

Secondly, you cannot have "Date Effet Releve Km" in your "Group By" if you at the same time want to calculate the Max("Date Effet Releve Km"). There is only one value of "Date Effet Releve Km" within each group.

View solution in original post

1 Reply
hic
Former Employee
Former Employee

Two errors:

First, the $(max("Date Effet Releve Km")) in the where clause will not work. You cannot use aggregation functions inside dollar expansions in the script. However, I don't think that the where clause is needed: The Left Join should take care of the filtering.

Secondly, you cannot have "Date Effet Releve Km" in your "Group By" if you at the same time want to calculate the Max("Date Effet Releve Km"). There is only one value of "Date Effet Releve Km" within each group.