Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2796

Dynamic selection of Analytical view in Calculation

$
0
0

Hi

 

 

Is it possible to dynamically select the view based on Cases statement.

 

 

 

Myscenario

 

 

I have to show the actual sales and projected sales.

Every month, the showroom sends the actuals sales and the projected sales.

 

Ex.

ShowroomJan 2016Feb 2016Mar 2016Apr 2016May 2016June 2016July 2016Aug 2016Sep 2016Oct 2016Nov 2016Dec 2016
SHW - 1200300400500500400300350500400300200

In Month of Feb , Jan and Feb will be actual sales and march to december will be projected sales

 

Some months, the same showroom may not send projected sales, but actual sales only

 

Ex In month of april, the showroom has send only Actual sales till Apr 2016

ShowroomJan 2016Feb 2016Mar 2016Apr 2016May 2016June 2016July 2016Aug 2016Sep 2016Oct 2016Nov 2016Dec 2016
SHW - 1200300400500

 

 

So when we run the report, I should take the previous month Projected sales and need to apply for remaining months

 

In this case, I need to take March data which has projected sales from Mar to Dec and I need apply from May to Dec

 

So,

 

The possible thought is , will create projection for last month, and current month and if the projected months value is empty I need to take from other projection (ie last month)

 

Sometimes, it may be case, the projected sales they might have given only one time , so I need to traverse back to find the month where the projected sales exist and to take projected sales from those and apply in report

 

Coming back to question, is it dynamically I can select the projection I need to report based on condition

 

Ex.

 

 

if curr month projected sales exist

take proj 1

else if month-1 projected sales exist

take proj 2

else if month-2 projected sales exist

take proj 3

-

-

-

else if month-11 projected sales exist

take proj 12

 

Regards

Ben


Viewing all articles
Browse latest Browse all 2796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>