Discussion Board for collaboration on QlikView Scripting.
I have a problem summing up the Max values over 2 dimensions.
What I thought to be basic seems to be quite tricky:
Two data sources ("Meldestelle") send usage data should ("Soll")/is ("Ist") for two services "Derivat"
I create a diagram with
For the latter 2 I tried
=sum(TIF_TABLE.accum_soll_h) / sum(Max(TOTAL TIF_TABLE.accum_soll_h))
Or alike but the divisor seems to evaluate wrong:
I would expect sum(Max(TOTAL TIF_TABLE.accum_soll_h)) to give me the max of - in this case the sum(TIF_TABLE.accum_soll_h).
All works out, when selecting ONE "Meldestelle" and ONE Derivat:
Over multiple it fails…
I also tried with aggr - like
But results look even more strange…
Someone can help, please?
Go to Solution.
See if these work:
=Sum(TIF_TABLE.accum_soll_h) / Max(TOTAL Aggr(Sum(TIF_TABLE.accum_soll_h), TIF_TABLE.I_Stufe.MeilenStein_Woche))
=Sum(TIF_TABLE.accum_ist_h) / Max(TOTAL Aggr(Sum(TIF_TABLE.accum_ist_h), TIF_TABLE.I_Stufe.MeilenStein_Woche))
thanks a lot - it took me several hours trying before I finally posted the question... You solved it! :-)
Have a nice weekend Oliver