Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have the below pivot table
The balance is the previous weeks balance plus the previous weeks revenues which I get using the expression
RangeSum(
Sum(TOTAL {<[Weekstart]>} Balance),
RangeSum(Before(Sum({<[ Weekstart]>}UnsettledSell)
, 1, ColumnNo())))
I then have appended this expression to the following for use in a line chart and it works great.
RangeSum(
Sum(TOTAL {<[Weekstart]>} Balance),
RangeSum(Above(Sum({<[ Weekstart]>}UnsettledSell)
, 1, RowNo())))
The problem I am having is I want to add another dimension 'Company' to the line chart it ruins the expression and gives me the below.
I believe it has to do with the above function and multiple dimensions but I am unsure on how to solve.
Thanks!!
Mark
Are you sure you used this?
Aggr(
RangeSum(
Sum(TOTAL <Company> {<[Weekstart]>} Balance),
RangeSum(Above(Sum({<[ Weekstart]>}UnsettledSell)
, 1, RowNo())))
, Company, (Weekstart, (NUMERIC)))
May be try this
Aggr(
RangeSum(
Sum(TOTAL <Company> {<[Weekstart]>} Balance),
RangeSum(Above(Sum({<[ Weekstart]>}UnsettledSell)
, 1, RowNo())))
, Company, Weekstart)
or this
Aggr(
RangeSum(
Sum(TOTAL {<[Weekstart]>} Balance),
RangeSum(Above(Sum({<[ Weekstart]>}UnsettledSell)
, 1, RowNo())))
, Company, Weekstart)
Not quite working, the balances seem to be applied to the incorrect weeks.
The pivot table shows the desired results and the straight table shows what I am getting
How about this?
Aggr(
RangeSum(
Sum(TOTAL <Company> {<[Weekstart]>} Balance),
RangeSum(Above(Sum({<[ Weekstart]>}UnsettledSell)
, 1, RowNo())))
, Company, (Weekstart, (NUMERIC)))
Closer I think! That works great when I have one company selected, however if I select a second company the starting balance for each company becomes the sum of their two starting balances. Their revenues are then applied appropriately in subsequent weeks but the starting balance is the sum of the two companies.
Are you sure you used this?
Aggr(
RangeSum(
Sum(TOTAL <Company> {<[Weekstart]>} Balance),
RangeSum(Above(Sum({<[ Weekstart]>}UnsettledSell)
, 1, RowNo())))
, Company, (Weekstart, (NUMERIC)))
Ah I was not, it works great thank you!!