Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filter in Last12 Month

Hallo,

ich habe eine Frage zum unsere Formular in Pivotabele.

diese Formel zeigt für alle Last 12 Month (selektierte Kalender Jahr) unsere Umsätze.

Sum({1<[Kalender.Kalender.Eindeutiger Monat]= {"$(='<='&Only([Kalender.Kalender.Eindeutiger Monat])&'>'&Only(date(addmonths([Kalender.Kalender.Eindeutiger Monat],-12),'MMM-YYYY')))"} >} Umsatz)

diese funktioniert auch richtig. nur wenn ich irgendwelche Filter (z.B. Sales Region ) setze, Zeigt immer noch alle umsätze für alle Sales Region und nicht die Sales Region, die gefilter ist

Der Filter wird Ignoriert. Ich habe auch 1 aus dem Formel raus gemacht und $ gesetzt. der Filter funktioniert aber er zeigt nur ein Monat nicht die letzte 12 Monaten.

Hat Jemand vielleicht Idee, woran es liegen könnte.

Viele Grüße,

Shideh
4 Replies
Not applicable
Author

Hi,

kannst Du ein Beispiel uploaden?

Schöne Grüsse
Stefan

P.S.: Generell denke ich aber, dass das Forum englisch ist (und bleiben sollte) :))
(Translated: I think the forum is only in english and should remain only in english)

Not applicable
Author

Shideh,

here are a small modification of your expression:

Sum({$<[Eindeutiger Monat] = { ">$(=date(addmonths([Eindeutiger Monat],-12) ,'MM-YYYY')) <=$(=Only([Eindeutiger Monat]))"}>} Umsatz)

It works for me (QV Professional Training Application).

Rainer

Not applicable
Author

Hi,

Thank you .

i can't gut Englisch.

attached my example.

Not applicable
Author

Hi Rainer

Thanks for your help.

i had to implement your expression. it works just for one month. see my example. what i want to do is make dynamic. if a user use the list box an select year 2009 and month 04. the result mus be from March 2008 to April 2009 and With the filter should also function which now not functioned.

March 2008

.

dez 2008

Jan2009

Febr2009

Mar 2009

Apr 2009

Thanks

Shideh