Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
naim216
Partner - Contributor II
Partner - Contributor II

Comparer une période en utilisant la dim date

Bonjour,

Je me permets de vous écrire suite à une difficulté que j’ai trouvé pour comparer les valeurs de J par rapport à J-1.

En pièce jointe vous trouvez un exemple des données que j’ai pris pour faire le calcule.

Lorsque je souhaite voir le détail par date/par article, le résultat des données n'est pas correct par rapport au J-1

Pourriez-vous svp m’aider à calculer la colonne J-1 sum(Montant)

Compare periode.jpg

Merci d'avance

1 Solution

Accepted Solutions
sunny_talwar

Here are the two options

Capture.PNG

I like the AsOfTable apporach better

View solution in original post

6 Replies
YoussefBelloum
Champion
Champion

Hi stalwar1‌,

I'm sure you have an idea to solve this

actually he wants the second table to look like the first table, every new date, take the above values of the different articles..

sunny_talwar

Here are the two options

Capture.PNG

I like the AsOfTable apporach better

naim216
Partner - Contributor II
Partner - Contributor II
Author

It works.

thank you

YoussefBelloum
Champion
Champion

Thank you

I was writing: Aggr(Sum(above(Sum(Montant)))...

for the AsOfTable, if the dates here was not incremented always by one day, it will work ?

sunny_talwar

It depends how many days you want to go back... do you want to go back exactly one day... then AsOfTable is the best way to do it... if you want to go back last day when the data was available (not essentially the last calendar day)... I will use Above()

YoussefBelloum
Champion
Champion

It is clear