Crystal Report 7Wie Gruppe die Zwischensumme im Bericht
Einzel Bericht (kein Unter Bericht hinzugefügt, Gruppe von id) mit
ID Value total
001 100 2000
001 200 3000
-------------
total 300 5000 (a)
002 300 1000
002 200 2000
-------------
total 500 3000 (b)
003 300 1000
003 200 2000
-------------
total 500 3000 (c)
......
I n Anzahl der Zwischensumme wie eine haben, b, c ....., jeder Wert Ihrer möchte ich subtotal2/subtotal1 wie b/a machen, c/a .....
Ouput
ErwartetID Value total subtotal
001 100 2000
002 200 3000
-------------------
total 300 5000 0
002 300 1000
002 200 2000
-------------------
total 500 3000 0.6
003 300 1000
003 200 1000
-------------------
total 500 2000 0.4
......
Wie man es im Kristallbericht macht.
Kann mir jemand eine Idee oder Formel Hilfe
Danke für deine Antwort, kannst du dich entschuldigen, bin ich noch verwirrt. Ich möchte das lösen ... – JetJack
Beginnen Sie mit der zweiten Lösung. Platziere das erste Formelfeld: 'global numbervar total_a: = 0;' im Berichtskopf, dann setze in deinem ASCII-Diagramm die zweite Formel, wo die 0 ist (sollte der Gruppenfuß sein): 'global numbervar total_a; wenn total_a = 0 dann total_a: = sum ({table.total}); Summe ({table.total})/total_a; '. Was geschieht? –