Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
kiral
Contributor III
Contributor III

Gesamtsumme in der Pivot-Tabelle funktioniert nicht

Hi,

Gesamtsummen-Formel funktioniert in der Pivot-Tabelle bei den folgende Feldern nicht:

Formel im Feld "Änd.-Plus"  =If([Änderung]>0, 1, 0)

Formel im Feld "Änd.-Minus"  =If([Änderung]<0, -1, 0)

kiral_2-1704985479443.png

kiral_3-1704985640678.png

Für Eure Hilfe bedanke ich mich im Voraus!

 

 

 

 

Labels (1)
  • SaaS

2 Solutions

Accepted Solutions
Digvijay_Singh

You would need to add Sum(Agg()) to get the right result in the total field, something like this below , add your table dimensions in the Aggr function

Sum(aggr(if([Visits]>0,1,0),[Client Name]))

View solution in original post

kiral
Contributor III
Contributor III
Author

Vielen Dank für die schnelle und wertvolle Hilfe!

So konnte ich mein Problem lösen:

=Sum(aggr(if(Count(If(%Datum = vaMaxLagerplatzinhalt, Lagerplätze_Änderungen.LagerplätzeÄnd))
-Count(If(%Datum = vaMaxLagerplatzinhalt_VW, Lagerplätze_Änderungen.LagerplätzeÄnd_VW))>0, 1, 0),[%Artikel%Variante]))

View solution in original post

2 Replies
Digvijay_Singh

You would need to add Sum(Agg()) to get the right result in the total field, something like this below , add your table dimensions in the Aggr function

Sum(aggr(if([Visits]>0,1,0),[Client Name]))

kiral
Contributor III
Contributor III
Author

Vielen Dank für die schnelle und wertvolle Hilfe!

So konnte ich mein Problem lösen:

=Sum(aggr(if(Count(If(%Datum = vaMaxLagerplatzinhalt, Lagerplätze_Änderungen.LagerplätzeÄnd))
-Count(If(%Datum = vaMaxLagerplatzinhalt_VW, Lagerplätze_Änderungen.LagerplätzeÄnd_VW))>0, 1, 0),[%Artikel%Variante]))