GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Business Objects

 Print  |  
Question:  Foreach and Forall

Answer: Difference between Foreach and Forall?


April 04, 2008 05:23:10 #1
 zeenat14   Member Since: April 2008    Total Comments: 2 

RE: Foreach and Forall
 
In Calculation Context, ForEach is used to include the dimension.

e.g. u want the Sales Revenue of every month by Year & Quarter, it will provides you with Sales Revenue for each month seperately. like
Q1
1   1000
2   1500
3   1200
Q2
4   2500
5   2678
6   1080
Q3
7   3000
8   2900
9   2670

ForAll is used to exclude the dimension used in it.
e.g. u want sales revenue of every month by Year and Quarter, it will provides u the same value of every month.
means for Q1 - for 1,2,3 month same Sales Revenue like
Q1
1    1000
2    1000
3    1000
Q2
4    2500
5    2500
6    2500
Q3
7    3000
8    3000
9    3000

i hope this will help u.
     

 

Back To Question