3308_de-DE
Col Sum Funktion FrageIch baue eine Spaltenformel im Formeleditor auf und habe ein Problem mit der Col-Sum-Funktion.
Mein Datensatz ist wie folgt aufgebaut:
Anspruch ein b
3154 1,5 10000
844, 5 1000000
7311 1,5 1000000
22777,5 10000
. . .
und ich möchte die Werte entsprechend der Funktion summieren:
Summe über i = 1 bis n {log (anspruch_i / b) * [(b / anspruch_i) ^ a + 1] ^ (- 1)}.
Die Claim-Werte sind für alle Zeilen in meinem Datensatz zu summieren, daher erscheint eine Col-Sum-Funktion die natürliche Wahl. Ich möchte jedoch nicht die a- und b-Variablen nach Zeilen summieren. Ich möchte, dass nur der Zeilenwert von a und b in die Formel eingeschlossen wird.
Normalerweise würde ich algebraische Manipulationen verwenden, um die a- und b-Konstanten außerhalb der Summation zu bringen. Angesichts der Komplexität dieser Formel ist dies jedoch keine Option.
Ist es möglich, zu ausschließen Spaltenvariablen aus der Col-Sum-Funktion?
Danke vielmals,
RobertRe: Col Sum Funktion FragePerfekt gearbeitet!
Vielen Dank, PMrozRe: Col Sum Funktion Frage
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">Ihre
Die Formel wäre ungefähr so:
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> dt
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> aktuell
Datentabelle
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> ()
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> mysum
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: blaugrün;"> 0
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> für
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
( ich
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: blaugrün;"> 1
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
ich
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> <=
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> nrows
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> (
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> dt )
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
ich
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> ++,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
anspruch_i
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> spalte
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> (
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> dt
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: lila;"> "Claim"
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">) [
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> i ]
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
Mysum
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
Mysum
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> +
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> log
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> (
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> claim_i
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> /:
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> b )
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> *
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
((
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">:
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> b
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> /
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> claim_i )
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> ^:
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> a
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> +
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: blaugrün;"> 1
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">)
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> ^
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
(
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> -
style = "font-size: 10pt; font-family:" Courier New "; Farbe: blaugrün;"> 1
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">)
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">)
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; color: black;"> mysum
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
Re: Col Sum Funktion FrageRichtig, außer, ich möchte die a und b nicht über jede Zeile summieren.
Zum Beispiel die Summation für die erste Zeile (wobei a = 1,5 und b = 10.000).
wäre:
sum1 =
log (3154/10000) * [(10000/3154) 1,5 + 1] ^ (-1) +
log (844/10000) * [(10000/844) 1,5 + 1] ^ (-1) +
log (7311/10000) * [(10000/7311) ^ 1,5 + 1] ^ (-1) +
log (22777/10000) * [(10000/22777) 1,5 + 1] ^ (-1) +. . .
und die Summation für die zweite Zeile (wobei a = 0,5 und b = 1.000.000 ist)
wäre:
sum2 =
log (3154/1000000) * [(1000000/3154) ^. 5 + 1] ^ (-1) +
log (844/1000000) * [(1000000/844) ^. 5 + 1] ^ (-1) +
log (7311/1000000) * [(1000000/7311) ^. 5 + 1] ^ (-1) +
log (22777/1000000) * [(1000000/22777) ^. 5 + 1] ^ (- 1) +. . .
Ich bin nicht sicher, ob JMP diese Art von Summe ausführen kann.Re: Col Sum Funktion FrageAlso macht das deine Formel wirklich
log (anspruch_i / b_i) * [(b_i / anspruch_i) ^ a_i + 1] ^ (- 1)
Wenn ja, dann könnten Sie verwenden
sum (log (anspruch / b) * [(b / anspruch) ^ a + 1] ^ (- 1))
Comments
There are no comments yet