Query Designer: Ideas how to calculate remainng weeks?
Hello!
I'm fairly new to BI, so bear with me...
I'm creating a query and I need to have a column that calculates a correction value for a weekly target value.
The general idea is a very simple logic. Based on previous year's net sales a 10 % increase is the target level for the current year. But if current sales are lower than the set target, I would need to create a logic that raises the target for the remaining weeks of the current year.
In other words, if 01.2006 the sales were 10, then the target for 01.2007 is 11. If sales in 01.2007 are only 9, the sales target has to be higher for the remaining weeks to reach 10 % yearly growth in sales. So the weekly addition to the target values for weeks 02.2007 - 52.2007 would be 11+(11-9/remaining weeks).
Any ideas on how to solve this in query designer? BI version is 7.0.
Points rewarded naturally!
Thanks in advance,
Antti
Hello Antti,
You have essentially done the hard part which is define what you actully need in your query.
My advice to you (and there would be many ways to do what you require) would be to create a "Calculated Key Figure"
So using your example your calculated key figure should be,
TARGET + (TARGET - ACTUAL / "REMAINING WEEKS")
REMAINING WEEKS I would create a variable, without going into too much detail here are two sites which I have found useful in the past.
http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
and
http://help.sap.com/saphelp_bw33/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/frameset.htm
Hope this helps Antti
Regards
Ben
Similar Messages
-
How to calculate the weeks in one month
Dear Freinds,
I have one requirement where i have to get no of weeks in a week . The requirement is
if in a particular month from the start of the month i have to have 8 days in a week.
lets for example in the month of novemeber 2008 (Four Weeks) , iwant the data as below
from 1st nov + 8 thnov -
will give first week
from 9thnov + 16thnov -
will give second week
from 17th nov + 24thnov -
will give third week
from 25th nov +30th -
will give fourth week .
could any one plese help me out how i can trace the above functionality through my code how i can
acheive the dates 1st nov to 8th as first week and 9thnov + 16thnov as second week.
could you please help me in this regard .
regards
madhuriHi Madhuri,
If my understanding of your requirement is correct. Please find the syntax below.
Data : Result type i.
Result = sy-datum+6(2) MOD 7. (or)
Result = date+6(2) MOD 7.
Let me know if your requirement is different.
Award points if you find the answer helpful.
Regards,
Gowri -
Performing ranking calculations with the BEx Query Designer - ideas?
I have a scenario where I have a key figure with raw values. In the column beside this I want to rank the key figures by their raw values.
Something like this:
Amount Rank
0.11 2
0.05 3
0.22 1
0.03 4
I can do this no problem using the "Calculate Single Values as:" Ranked List.
For subsequent calculations I need to perform mathematical operations on the RANK column. For example say I want to make a 3rd column where I divide the rank by 2:
Amount Rank Rank by 2
0.11 2 1
0.05 3 1.5
0.22 1 0.5
0.03 4 2
I cannot figure out how to do this as SAP does not really STORE the values of the rank column for my next calculation. The "Rank by 2" column actually shows this:
Rank by 2
0.065
0.0025
0.11
0.015
which is dividing the original amount by 2 and not the actual RANK value.
Anyone have some suggestions on what I can do?I know what you are talking about, it will always return 1 or zero which is true or false, I don't think you can do anything much to this. Since, the value of Ranked is getting calculated at runtime.
thanks.
Wond -
How to calculate correct week startdate with given date
import java.util.Date;
public class MyDate
public static void main(String args[]){
Date d1 = new Date();
System.out.println("The system date is "+d1.toString());
//enter some date and it should get starting date and ending date
//say for sample I enter 01/23/2006 and it should get
//start date as 12.00 AM 01/23/2006 and end date as 11.99 01/29/2006
//and it should automatically do whatever that gets for current
//date
Hi,
I have some date has current date and it should calculate starting date of the week and the
the next date that is 7 days old with one second less as described below
//enter some date and it should get starting date and ending date
//say for sample I enter 01/23/2006 and it should get
//start date as 12.00 AM 01/23/2006 and end date as 11.99 01/29/2006
//and it should automatically do whatever that gets for current
//date
Any help in this regard is appreciated.
Thanks
ChatfFor starters, you'll want to use the java.util.Calendar class.
-
How to calculate last week of the month
i want calculate dollar on the basis of last week of the month.
Hi prashant,
try to filter with the required month. if this is not your question, explain little bit clear..so, that some one will help you if they have the solution with.
or do you want to create a variable and then filter prompts...
cheers...
Edited by: ManiEswar on 24-Jan-2011 12:59 -
How to calculate a week & Month in given date range (not for sele-options)
Hi ,
I have defined 2 date parameters in sel-screen (Plz remember that date variable are not a SELECT-OPTIONS). Now i want ot display week nos & monts in output.
Ex: date1: 20080101 & date2: 20080229. then
weeks : 1, 2, 3,---9.
months: jan-08, feb-08.
Plz help me with block of code or any FM.
Regards,Hi Srikanth,
The FM HR_99S_INTERVAL_BETWEEN_DATES is doesn't existing, but there is a fm HR_MX_INTERVAL_BETWEEN_DATES but it returns no of Years & Days.
But i found some FM which r returns no of months for given date range. but my requirement is, want to display the month no bw 1 to 12. (ex: dat1=15-03-2008 & dat2= 01-06-2008 then in month fields 03,04,05 & 06. ).
Plz help me on this.
-Regards. -
Query Designer - how to count distinct characteristic values in a column
Hello Experts,
I need to count the number of distinct occurences in a column and use it later for a percentage calculation. I'll give you a concrete example:
Promotion_ID Product Promoted
A ****************** P1 ******** 1
A ****************** P2 ******** 0
A ****************** P3 ******** 1
B ****************** P1 ******** 0
B ****************** P3 ******** 1
C
D
A promotion ID can have more than 1 product associated with it. A product can be promoted (1) or not. A promotion_ID can be also empty (no products C and D)
I need to calculate for each product the percentage of promotions where the product is promoted out of ALL promotions (4) or
P1 25 %
P2 0 %
P3 50%
How can I model this in the Query Designer ? How can I count the distinct Promotion_IDs ?
Any ideas will be appreciated.
Thanks
RadoHi,
Please take a look at the docs below.
https://websmp102.sap-ag.de/~sapdownload/011000358700002762432003E/HowToCount.pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7e58e690-0201-0010-fd85-a2f29a41c7af
Regards,
® -
Hello everyone ,
I need a quickly help that as below :
I am trying use PCI-6220 to acquired six signals from one rotation encoder (channel A, channel B,channel Z ,and their non-signals) .The encoder out signals will be square wave and 4000pulses per revolution. I set it rotation at 300rpm speed. I need show every square wave of six out channels in waveform and measure the A-B phase difference to check if the value is correct (designed value should be 90deg) .
I have no idea how to measure or calculate the phase difference of two square wave base on synchronizate to acquire these two square wave from two channel on the PCI-6620....
Anyone can give a idea how to calculate the phase difference with two square wave ?
Thank a lot and Thanks again...
TimTim,
Here is a simple rising edge detector for one channel.
Lynn
Attachments:
Rising edge.vi 15 KB -
Number of records in cube from Query Designer
I don't have access to the cube in BW(listschema). I only have access to pull reports from cube from Query Designer. How can I tell the total number of records in a cube?
Thanks.Hi
you can use the tech content in the query designer to display the count for no of records or you can do the same via creating a new CKF
or see the below link to display the count
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a -
BEx Report / query designer
Hi,
I have created a query BEx Query designer. how can i see that output in the report.
how Query designer and report designer are relatedd?
Sri
Edited by: Sridhar Shankaran on Jul 14, 2010 9:29 AM
Please search the forum
Edited by: Pravender on Jul 14, 2010 12:57 PMHi,
Please always search the forums before posting a thread.
Also, there is a specific fourm for BEX questions:
SAP Community Network Forums » Business Intelligence » BI Suite - Business Explorer
Rgds,
Colum -
Difference Beetween Query Designer and Adhoc Query Designer
Hello!
can any one explain me what exactly is Adhoc query designer and how is it different from Bex Query designer. can you please provide me links for Adhoc query designer (not to Bex query designer)
with regards
ashwinHi Ashwin,
See this link:
http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
Basically the Adhoc query designer is a web item that you can include in a web template to allow the user to create or change queries in the web environment. It has some limitations like you cannot use variables, and can only use one structure.
Hope this helps... -
Hierarchy node not available in Query Designer
Hello Gurus,
I can find the hierarchy node variable in BW but it is not available in query designer. Does anyone know what might be the problem and a solution?
Thanks,
MarkHi Mark,
You said you "find the hierarchy node variable in BW but it is not available in query designer".
How did you find the hierarchy node variable in BW? From backend SAPGUI, you will only be able to see the variable in some internal tables like RSZGLOBV. Did you mean this?
For "it is not available in query designer", do you means that when you want to create a hierarchy node variable for this characteristic in Query Designer, you don't find this certain hierarchy node variable in the hierarchy node variable list?
Important thing to notice is that, flat value variables and hierarchy node variables are listed separately. Did you make sure that you have chose to list hierarchy node variables in Query Designer?
Regards,
Patricia -
Restricting infoobject in query designer with authorization object
Hi,
We have to restrict CUSTOMER infoobject with a authorization object in query designer.
How to do this task ? Request kindly suggest.thr RSSECADMIN tcode. Search with this key word you will get good docs & Wikis in SDN
bhaskar -
What are the error messages that turns up while working query designer?
hi all,
Can anyone list me out what are the erros turns up while working on query designer. and how to debug it.
Can any one send me docs to my email id [email protected]
thanxs in advance
regds
hariHi Hari,
Error for example:
-. The BW server has deactivated this version of the query designer
-. This version of the query designer is not supported by the BI server
-. Activex component in business explorer selector
regards
@jay -
Not getting Report Model Query Designer in SSRS
I am working on SQL Server reporting Service(SSRS) with Report Builder 3. I successfully connected Data Source with Oracle Server. When I working in Report Builder I did not find Report Model Query Designer. How can I find this?
How can it possible to merge dataset with datasource(database entity) in SSRS?
Please help me.Hi Jewel,
To enable Report Model Query Designer in Report Builder, we need use Report Model as the datasource. Report models can be used as data sources for reports created in Report Designer and Report Builder 3.0.
So in your scenario, you need to create a Report Model project in SQL Server Business Intelligence Development Studio (BIDS), and then deploy this report model to report server. Then in Report Builder, you can use this report model as datasource and open
Report Model Query Designer window.
Reference.
Report Models (Report Builder 3.0 and SSRS)
Tutorial: Creating a Report Model
If I have anything misunderstood, please point it out.
Regards,
Charlie Liao
TechNet Community Support
Maybe you are looking for
-
I clicked on something and it disappeared. I wanted 2 embed a video and someone told me there should be a "source" button on the toolbar that I need to click on. I clicked on something & then the entire toolbar was gone. And now I cannot get it back.
-
Change Wysiwyg Editor in Web Page Composer WPC
Hi, is there any possibility to change the wysiwyg editor in the wpc? Comparing other web based wyswyg editors to the editor integrated in the wpc it is far from having any advantages...! - no possiblity to switch to html mode. - no possibility to as
-
I have French as a subject, and I was planning to use Pages to help me with it. So I have a couple of problems: 1. Pages language set to French, French words still come up wrong, although they are right. 2. Unable to get speech to say the French, jus
-
After install Yosemite, MBP be slow without the charger
Hello! When I was install Maverick in my MBP it worked bad when it unplugged of the electricity, it work really slow, work like a jumps. but when the computer was plugged to the charger work perfectly. Well, this had a easy and quick solution: I had
-
Aside from using them to cut holes in shapes, are there any other reasons to create a compound path? They seem to be similar to a grouping paths so I just wondered.