Skip to Content
author's profile photo Former Member
Former Member

Sum Function Issue

Hello All,

Need quick help on getting sum functionality. Guess a context issue but still unable to figure out the solution

I have created a variable which gives me sum(v1+v2) foreach Dimension-A

I have another Dimension B.

sum(v1+v2) foreach Dimension-A = XX -->224


sum(v1+v2) foreach Dimension-B= XY -->308


All I need is to display in report is sum(v1+v2) which is XY



In report, All i need to see is 308. When I just drag sum(v1+v2) foreach Dimension-A still I get 224.


How to get this.


Thanks,

Harsha

Emp.JPG (9.1 kB)
PA.JPG (9.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2015 at 12:54 PM

    Hi,

    I´m sorry but I didn´t understand your question, can you provide us with some sample data ?

    You don´t need to redefine the context if A and B are in the same block of the sum(v1+v2).

    You need to use the ForEach if A or B isn´t in the block.

    Regards,

    Rogerio

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2015 at 03:51 PM

    Did you try :

    =Sum( ([v1]+[v2]) ForEach ([Dimension-B]) )

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.