Need a special offer?Find out if your project fits.
+

Calculation lines with functions (e.g. min/max) incorrect

Answered
Nico PAckroff asked on December 1, 2023

It now turned out that the calculation rows (totals over groupings and grand total) of Flexmonster have a bug.
For "Calculated columns" in which a "MIN" or "MAX" function is executed, the calculation row (total) is determined incorrectly.
This still goes to MIN or MAX, which is wrong in this case. Here the results of the min/max values should be added together.
Case example: I have over-organised orders with an order target.
And daily employee times that work on an order, these are the actual times.
If I now want to compare order target and order actual, I have to use the "MIN" function for target so that they are not totalled daily.
However, the actual times should be totalled daily.
Now I get completely wrong values in the grouped calculation line (total of order and total of orders).
The error lies in the calculation of the totals lines, where the result of the function (e.g. Min) must be used, not the function itself executed again.

Es stellte sich nun raus, dass die Berechnungszeilen (Summen über Gruppierungen und Gesamtsumme) von Flexmonster einen Bug haben.
Bei “Berechneten Spalten” in denen eine “MIN” oder “MAX” Funktion ausgeführt wird, wird die Berechnungszeile (Summe) falsch ermittelt.
Diese geht immernoch auf MIN oder MAX, was in dem Fall falsch ist. Hier müssten die Ergebnisse der Min/Max Werte zusammengerechnet werden.
Fallbeispiel ist, ich habe übergeornete Aufträge mit einem Auftragssoll.
Und tägliche Mitarbeiterzeiten welche auf einem Auftrag arbeiten, dies sind die Ist-Zeiten.
Will ich nun Auftrags-Soll und Auftrags-Ist gegenüberstellen, muss ich bei Soll die Funktion "MIN" nutzen, damit nicht täglich zusammengerechnet wird.
Die Ist-Zeiten sollen aber täglich zusammengerechnet werden.
Nun bekomme ich bei der Gruppierten Berechnungszeile (Summe von Auftrag und Gesamtsumme von Aufträgen) komplett falsche Werte.
Der Fehler liegt in der Berechnung der Summenzeilen, dort muss das Ergebnis der Funktion (zB.Min) genutzt werden, nicht nochmal die Funktion selbst ausgeführt werden.

3 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster December 1, 2023

Hello, Nico!
 
Thank you for reaching out to us.
 
Kindly note that it is the expected behavior of calculating total rows in Flexmonster to have the same aggregation as used to calculate each pivot cell value.
 
Hope it helps.
Feel free to contact us in case of any other questions.
 
Kind regards,
Solomiia

Public
Nico PAckroff December 8, 2023

And how do I get to the result?
I would like to have the MIN values as the row function, but the totalised MIN values as the grand total. Not the MIN values from the MIN value.
Kind regards

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster December 11, 2023

Hello, Nico!
 
Thank you for getting back to us.
 
Kindly note that you can use the customizeCell() approach to change the values in the grand total row.
You can change the labels in the total cells as follows:

function customizeCellFunction(cell, data) {
if (data.type == "value" && data.isGrandTotal) {
    cell.text = "sum value";
  }
}

Please find more details about customizing cells in our docs: https://www.flexmonster.com/doc/customizing-grid/.
 
Hope it helps.
 
Kind regards,
Solomiia

Please login or Register to Submit Answer