Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
konidena
Creator
Creator

MAT Calculation

Hi  Team,

Here is my sample data attached.

I have Integer field "MonthCode" is coming from data base in the format "YYYYMM".

Other fields I have

Product

StandardUnits

MarketSales

Here are my KPI calculations:

MarketShare: StandardUnits/MarketSales

EvolutionIndex: Current Year Market Share/Previous Year Market Share

MAT: Moving Annual Total is Sum of last 12 Months Standard Units

for example i am in the month 201606 (That is June) my MAT for June is  Sum of the sales data for the months July 2015 to Jun 2016.

Challenge I am facing: I have to show Evolution Index Verses Time for MAT

X-Axis Dimension should be of the format MonthYY (jul 15 to Jun 16)

Here the MAT for Jul 2015 is sum of the earlier 12 months data . That is Aug 14 to Jul 15

for Aug 15, Sep 14 to Aug 15. Like this, my x-axis should show the dimension values (Jun 15,jul 15, Aug 15, Sep 15, Oct 15, Nov 15, Dec 15, Jan 16, Feb 16, Mar 16, Apr 16, May 16, Jun 16).....This order will change when i moved to next month

Y-Axis should show Evolution index .

so my calculation for Evolution Index should be (Current Last 12 Months Market Share)/(Previous last 12 Months)

Example :      (MarketShare (jul 2015 to Jun 2016))/(MarketShare(Jul 2014 to Jun 2015))

I have used AsOfTable in application. But, I am not able to to get the x axis month values.

Regards

Srinivas

11 Replies
konidena
Creator
Creator
Author

Sample Data:

    

MonthCodeProductStandardUnitsMarketSales
201606Product12534955034
201605Product13776955034
201604Product12942955034
201603Product14361955034
201602Product13599955034
201601Product12215955034
201512Product12417935213
201511Product13832935213
201510Product12877935213
201509Product12328935213
201508Product14242935213
201507Product12380935213
201506Product13224935213
201505Product13066935213
201504Product14627935213
201503Product12715935213
201502Product13646935213
201501Product12825935213
201412Product13744921871
201411Product13012921871
201410Product14240921871
201409Product13128921871
201408Product13686921871
201407Product14651921871
201406Product14653921871
201405Product12713921871
201404Product14962921871
201403Product14121921871
201402Product12098921871
201401Product13187921871
201312Product12863914553
201311Product13725914553
201310Product14230914553
201309Product12750914553
201308Product13046914553
201307Product13510914553
Anil_Babu_Samineni

Sri,

If possible please share me the image of expecting o/p

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
konidena
Creator
Creator
Author

Graph Picture.PNG

Anil_Babu_Samineni

Sri,

In that, what are you expecting..

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
konidena
Creator
Creator
Author

Anil,

The same graph i need to generate...As i mentioned in my first discussion, i am not getting the x-Axis as shown Above.

I need to calculate the Evolution Index. I had provided the sample data and Evolution Index definition in the above.

Regards

Srinivas

Anil_Babu_Samineni

Sri,

I am not sure what are you asking. See just apply this expression on your Monthcode dimension and then try..

Date(MonthCode,'MMM-YY')

If not share me the sample qvw so that i will send the same format with you

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sasikanth
Master
Master

HI Srinivas,

Please check the attached QV applications,

Let me know if it not your desired output

Thanks

sasi

Digvijay_Singh

See if below sample can help -

konidena
Creator
Creator
Author

Sasi,

You are giving the data for last 12 Months. It is fine when we calculate the data for last 12 Months.

My requirement is Current 12 Months sum of sales / previous 12 Months sum of sales. This is the expression we need to use in my chart.

for example for Jun 2016:    Jul 2015 to Jun 2016/ Jul 2014 to Jun 2015

Here, My X-Axis should be Month Name starting from jul 2015 to Jun 2016