Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
giakoum
Partner - Master II
Partner - Master II

expression sum over one dimension only

Good morning

I have a pivot (or straight table) table with 2 dimensions, and 1 expression as in the attached example (Count(MVCDE)*MZPRT). I need to compare the expression total over dimension DESTINAZIONE to the original expression.

This should be somehow straight forward, but I am unable to get it right. So I need a new column in QV as column F in the attached excel.

Any ideas?

Thank you

1 Solution

Accepted Solutions
whiteline
Master II
Master II

This gives what you want:

=Sum(total<DESTINAZIONE> aggr(distinct Count(MVCDE)*MZPRT, DESTINAZIONE, MEZZO))

View solution in original post

2 Replies
whiteline
Master II
Master II

This gives what you want:

=Sum(total<DESTINAZIONE> aggr(distinct Count(MVCDE)*MZPRT, DESTINAZIONE, MEZZO))

giakoum
Partner - Master II
Partner - Master II
Author

thank you!