Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
My problem is that in a pivot table that I have 5 amounts of 9,000,000 in an expression, but the total seems 16,000,000.
I no have idea how to change.
I hope you can help me.
In a pivot, the total is calculated as expression total.
Depending on your data and expression, the result differ from a sum-of-rows.
To get a sum-of-rows, use advanced aggregation:
sum( aggr( YOUREXPRESSION, YOURTABLEDIMENSIONS))
and please have a look at the Help, search for sum-of-rows in pivot tables.
Hope this helps,
Stefan
but the problem I have is that the sum of columns (expressions) is not the total, as shown in the image attach, the problem is not the sum of the rows.
thanks for helping
Can you upload a sample?
Maybe I miss your point, I only see one column and a total for that, so I assumed that's the total over the rows.
What value do you expect as total? As Federico said, could you upload a sample or at least state your expressions / dimensions used?
ok, I have this expression
if( MaxString({$<Reporte= {[Balance]} >} Rubro1)= 'Total de Activo',
If( Dimensionality()<=Max( {$< $(vSetModoVista) /*La variable incluye coma*/
$(vSetMTDHist),
Reporte = {[Balance]}
>} Dimensionality
),
Sum ( {$< $(vSetModoVista) /*La variable incluye coma*/
$(vSetMTDHist),
Reporte = {[Balance]}
>}
(([$ Importe ML (Original)]*Signo) * Factor)/Divisor
)
),
If( Dimensionality()<=Max( {$< $(vSetModoVista) /*La variable incluye coma*/
$(vSetMTDHist),
Reporte = {[Balance]}
>} Dimensionality
),
Sum ( {$< $(vSetModoVista) /*La variable incluye coma*/
$(vSetMTDHist),
Reporte = {[Balance]}
>}
(([$ Importe ML (Original)]*Signo*(-1)) * Factor)/Divisor
)
)
)
I'll try to post an example