Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Can anyone help me on below expression.
I have my expression - sum(aggr( Fabs((Sum(SALES_QTY) - Sum(SOP_Cts))/1000), CATEGORY))
Now With some condition I have to change in
If(Year ='2014',(sum({$<Year = {2013,2014},MONTH = {"<=$(vMonth)"},HalfYear,Quarter>} SALES_AMT_USD/1000000)),
If(Year = '2013',(sum({$<Year={2013},MONTH = {7,8,9,10,11,12},HalfYear,Quarter>}SALES_AMT_USD)/1000000),
(Sum(SALES_AMT_USD)/1000000)))
Previous one I have to convert in
If(Year ='2014',(sum({$<Year = {2013,2014},MONTH = {"<=$(vMonth)"},HalfYear,Quarter>} SALES_AMT_USD/1000000)),
If(Year = '2013',(sum({$<Year={2013},MONTH = {7,8,9,10,11,12},HalfYear,Quarter>}SALES_AMT_USD)/1000000),
(Sum(SALES_AMT_USD)/1000000)))
Thanks
What you want ?
Agree with Manish, not sure what you are asking here!
I want the same aggr function whatever I am using in 1st expression i.e - sum(aggr( Fabs((Sum(SALES_QTY) - Sum(SOP_Cts))/1000), CATEGORY))
Same should be in - sum({$<Year = {2013,2014},MONTH = {"<=$(vMonth)"},HalfYear,Quarter>} SALES_AMT_USD/1000000))
Can you provide sample data or sample application?
Yes Please find the attached xls.
for Actual - 2014 Data is available till Mar and for 2013 - from Jul to Dec and Plan is available for 2013 from JAN to DECEMBER, I want YTD. By Category wise with (Acual - Plan)/1000
Yes Please find the attached xls.
for Actual - 2014 Data is available till Mar and for 2013 - from Jul to Dec and Plan is available for 2013 from JAN to DECEMBER, I want YTD. By Category wise with (Acual - Plan)/1000
Create a Pivot Table
Dimension
CATEGORY
YEAR
Expression
FABS(SUM(Actual)-SUM(Plan))/1000
This is what you are looking for?
I want diff. between Actual - Plan
sum(Aggr( Fabs(Sum({$<Year = {2014},MONTH = {"<=$(vMonth)"}>}((SALES_QTY)-(SOP_Cts))/1000)),CATEGORY))
For Output please find the attached
I want diff. between Actual - Plan
sum(Aggr( Fabs(Sum({$<Year = {2014},MONTH = {"<=$(vMonth)"}>}((SALES_QTY)-(SOP_Cts))/1000)),CATEGORY))