Current Month/Year to default in prompt
Hello Friends I have 2 User prompts for report for which i created the filter. where I want to calculate the Month/Year TO value as default to current month/year.
Can u Help me with the code in OLAP SAP BI as backend Universe
substr(TO_CHAR(current_date,1,7))
Above does not work but if I hard code it works
I am trying to default the current month and year
Code that works with hard code 200906 but not with d efault the current month and year
Please correct my code
<OPERATOR VALUE="AND">
<FILTER EXPRESSION="[ZFISCPER].[LEVEL01].[[2ZFISCPER]].[Value]">
<CONDITION OPERATORCONDITION="Betweenl">
<CONSTANT NAME="@Prompt('Fiscal Month start','A','Period\Fiscal Mth',mono,primary_key,not_persistent)"/>
<CONSTANT NAME="@Prompt('Select Fiscal Month','A','Period\Fiscal Mth',mono,free,Not_Persistent,{ '2009/06' },User:0)"/>
</CONDITION></FILTER>
</OPERATOR>
Soniya
Hi Didier,
Same comment here.
Very interested to know what the plans are in this area and when it can be expected. This is a very important feauture.
Are there documented best practises available for using user exit's?
We've also been exploring the option to use operating system environment variables to work around the issue (combined with some scheduled scripting). No luck so far in web intelligence (which is needed for OLAP universes).
Please see
@variable and Operating system variables (Windows environment variables)
Thanks in advance for your thoughts on this!
Raf
Similar Messages
-
How to pass current month as the default value in the prompt
Hi,
Could you please tell me how to pass the current month as the default value in the prompt.
I have a report where month is a prompt. By Default it should ahve current month as the default value along with other months.
Please let me know the syntax for the same.
Thanks in advance!!
Regards
SindhuHi,
what datasource do you have? Is it SAP BW or something else? -
How to set the current month as the default value of an input control?
Hello,
I want to set the current month or current year as the default value of an input control. Something like try to get the month from the currentdate() formula and assign it to the input control.
Is this possible?
Thanks & Regards
SU>
soauniverse wrote:
> Hello,
>
> I want to set the current month or current year as the default value of an input control. Something like try to get the month from the currentdate() formula and assign it to the input control.
>
> Is this possible?
>
> Thanks & Regards
> SU
I don't think so. I tried to find a property or something in that Input Control but there is nothing to set it that way. -
Displaying current month in prompt
Hi,
I want to show the current month as the default value in Prompt in XI R3.1 Webi. i.e. when the user runs the report, the prompt for "Month" should show the current month (Say March) and if user wants to change it he can change it to someother month.
Pls let me know how to acheive this (May be by doing changes to report or to the Universe).
Regards
JimYou can try the below step in Universe
Steps
1.You have a date time field = u201CDateXu201D
2.Build another object of the same field in unv = u201CDate X New Objectu201D
code:
case When to_date (Sysdate, "MM") then "Current Month"
end
3.Build Condition in Unv = Date Picker
code:
@Select(Cass\DateX New Object) = @Prompt(u2019Date Pickeru2019,'Au2019,{u2019Customu2019,'Yesterdayu2019,'Last 10 Daysu2019,'Todayu2019},mono,constrained,persistent,{u2019Current Monthu2019})
You can take reference of the below
http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/ -
Report by Day/Week/Month/Year
Hi All,
I have the table showing below
Empid name tikcetno Completed date
694 anil 10051 23-Jun-09
695 madhu 10052 23-Jun-09
694 anil 10053 23-Jun-09
695 madhu 10054 22-Jun-09
695 madhu 10055 6-Jan-09
I need to create the report which will show employee wise count of tickets in a day,week,month and year.
Day: count(tickets) for current date
Week: count(tickets) for current week
Month: count(tickets) for current month
Year: count(tickets) for current year
I need to show all these four columns in a horizantal table. I am using crystal reports2008. Please help me. ur help would be appreciated.
Anil.Hi,
create 4 formulas for day, week, Month and year
for ex, in Day formula
IF Date Field = CurrentDate then 1 else 0... similarly for other ranges. Create a Group based on employee, and insert a SUM summary field of these formulas in Group header.
Hope this will help you.
Jyothi
Edited by: Jyothi Yepuri on Jul 13, 2009 3:04 AM -
Last/latest 10 months data ( including current month)
Hi,
I need to find the last/latest 10 months data ( including current month)
Year
1/1/2014
1/2/2014
1/3/2014
1/4/2014
1/5/2014
1/6/2014
1/7/2014
1/8/2014
1/9/2014
1/10/2014
1/11/2014
1/12/2014
1/1/2013
1/2/2013
1/3/2012
1/4/2012Hi,
this is my data
Year column with Nvarchar datatype.
Year
1/1/2014
1/2/2014
1/3/2014
1/4/2014
1/5/2014
1/6/2014
1/7/2014
1/8/2014
1/9/2014
1/10/2014
1/11/2014
1/12/2014
1/1/2013
1/2/2013
1/3/2012
1/4/2012
now form this yea) column i need to fetch the latest/last 10 months data only .
OutpUt for the Query to be:
Year
1/3/2014
1/4/2014
1/5/2014
1/6/2014
1/7/2014
1/8/2014
1/9/2014
1/10/2014
1/11/2014
1/12/2014
Hope this will give you clear picture -
Can one Crystal Report could contian Current Month, YTD and ITD data?
Hi,
I am trying to build a crystal report and be able to show data in summarized format on single report containing data for the current month, year to date and Inception to date.
The difficulty that I find is the date ranges. Current month date range is different from YTD and ITD date.
what would be the best way to show such data on crystal report? is there a sample report available that can help me to produce such report?
your help will be highly appreciated, thanks!
regards,
MansoorHey Joe,
if you have CRXI, take a look at the sample reports
Record Selection on Date Range has some good examples
you can do this with multiple Groups
create a formula
in to currentdate
( this group will cover your inception date to currentdate)
second group will be a date group also, select year as your print by option for this group.
3rd group also by date,
select month.
add fields to your details section, select the field, right click and select summary location,
(add to all groups)
you can then supress footers and headers as needed.
Hope this helps. -
Current Months Data - Automatic
How to run a YTD report which will automatically show the current months data with no variable prompt for the same...?
Is there any such variable which will run a report only for current months data.I dont think there is a std variable for current period. rather you can use fiscalyear/period time char and use 0FPER to derive current fiscalyear/period
-
Have prompt default to the current month?
One of my prompts displays a list of months; e.g., Jan, Feb, ... Dec. The user selects the month they want to report on. I need the prompt to default to the current month. Is this possible within Web Intelligence?
What is your data source for your webi report?
If you are using a universe, you can default the value by following these steps:
Select default date as today in WEBI
However if you are using BW then follow the steps in this blog
Dynamic default values with prompt in webi reports (based on bex queries) in BO
Regards,
Josh -
Expression - First date and last date of current month, current year
Hi
I need to have 2 ssrs expression as I can use as default parameters in my report where I can - out from my Time dimension, get the
first date of the current, current year - and one where I get last date, current month, current year.
My data source is a SSAS cube and my timedimension is structured like this:
[Time].[Days].&[2009-01-16T00:00:00]
Any suggestions how to solve this ?Hi ,
You can use below in Default Values in ssrs ;
for first Day of current month and year
="[Time].[Days].&[" +Format(dateadd("m",0,dateserial(year(Today),month(Today),1)), "yyyy-MM-dd")+"T00:00:00]"
output will be ;
[Time].[Days].&[2014-09-01T00:00:00]
For last day of current month and year
="[Time].[Days].&[" +Format(DateSerial(Year(Now()), Month(Now()), "1").AddMonths(1).AddDays(-1), "yyyy-MM-dd")+"T00:00:00]"
output will be ;
[Time].[Days].&[2014-09-30T00:00:00]
Please correct me if I misunderstood your requirement.
Thanks
Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. -
How to set a default value as current month in already created variable of 0fiscper
Hi Guys,
In my report currently we are using a variable for 0fiscper which is mandatory and selection option.
Now there is a requirement to set current month as default value in that variable.
Please let me know how can I do that.
Thanks.
DollyYou need to change the processing type to customer exit of that variable.
Now in i_step = 1 write the following code:
Data:dt LIKE sy-datum,
zper TYPE /bi0/oifiscper,
YR type /bi0/oicalyear,
per LIKE t009b-poper.
IF i_step = 1.
WHEN 'X_FSCPRC' .---User input variable based on cmod.
dt = sy-datum.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = dt
i_periv = 'M3'---Give the fiscal year variant according to your system
IMPORTING
e_buper = per
e_gjahr = yr
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
IF sy-subrc = 0.
Concatenate YR Per into Zper.
l_s_range-low = Zper.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
endif. -
FM to calculate date month & year six months previous to the current date
Hi All,
Is there any function module or code to calculate date month & year six months previous to the current date.
Thanks in advance.hi,
try this
data : date1 like vbak-erdat.
data : q type numc3.
selection-screen : begin of block blk2 with frame title text-001.
parameters : n like q.
selection-screen : end of block blk2.
if n > 0.
CALL FUNCTION 'CCM_GO_BACK_MONTHS'
EXPORTING
CURRDATE = sy-datum
BACKMONTHS = n
IMPORTING
NEWDATE = date1
selection-screen: begin of block blk1 with frame title text-001.
select-options : s_date for vbak-erdat default 'NEWDATE' to 'sy-datum' no-display.
selection-screen : end of block blk1.
write : date1.
Reward with points if helpful. -
Time Dimension _ Report on Current month and previous year.TOTAL
Hi,
My Time dimension is as under .
July2013, Aug2013 ,......Jan2014,,,. June2014 = 2014.TOTAL
My requirement is to report based on context view along with previous period total (.TOTAL) values.
For example : If i am using CV as : 2013.JUL my report should show 2013.JUL & 2013.TOTAL
If i am using CV as : 2014.JUN my report should show 2014.JUN & 2013.TOTAL
Can anyone provide some direction to build the above scenario
Regards
KrishnaHi,
do you have the property YEAR in your time dimension filled out? If so, you could use EPMDIMENSIONOVERRIDE function together with an Excel cell.
Let me build an example:
Assuming your report has two columns, one for the current month and one for the total year. I would split this into two, one report per month, i.e. column. The first report will show the current period, the second the total. Somewhere in the header of your sheet use:
EPMDimensionOverride("001";"TIME";EPMMemberProperty(;EPMContextMember(;"TIME");"YEAR")&".TOTAL")
001 is the default ID of the second report.
BR,
Arnold -
Please help. I have a matrix report. In the report I have row group PO Type. One the Column groups I have a parent group by Fiscal Year, and then a child group by Month. When I run the report, I get two years of data back broken
out by month. Please see below.
Now here is where I am getting stuck. I need to take the variance between the current month of the current year, from the same month of the prior year. So I need to show the difference between Oct , 2014 from Oct, 2013. November, 2014 from November
2013... etc. etc.
In the example below, how do I create a column or row showing the variance for Contracts for October 2014. I need to take the contracts for October 2014 which is 3 and subtract that from October 2013 which is 8. Any suggestions? How do I do that
for each month? Then I need to do it for the quarter... then the year? But I'll be happy if I can just get the month working first.
Any help will be appreciated.
here is what my rdl file looks like.
Here is what my report looks like when I render it.Hi Adrian_s2012,
According to your description, you want to compare values for the month of current year with the month of prior year and get the variance. Right?
In Reporting Services, we don't have any function to get this "Year to Year" Growth. In this scenario, if you data source is a cube, we suggest you use Analysis Services to achieve your requirement. If this data source is just from database, it will be hardly
to calculate the variance because we need to compare the values within every two different column group and matrix generate adjacent columns one by one. Even we make it by using custom, every time executing the long code when generating result
in a cell will reduce a lot of performance, we really don't suggest to do that in SSRS. Here is a thread with much easier requirement, please take a reference of that:
http://social.msdn.microsoft.com/Forums/office/en-US/842e2dcb-d949-4297-9d91-eac989692cb5/difference-between-the-grouped-column?forum=sqlreportingservices
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Default value in a variable - current month
Hi!
I have a infoobject called CREATE_MONTH. My queries divides the result based on this month. If there are several month it summarize the result. The CREAT_MONTH is a free characteristics, and not defined in the main table.
I want the current month value as a default. Is this possible?Hi.....
As already told......You have to use an Offset for the variable...
Check this :
Re: How to create a variable in Bex Query Designer
This will help you.........
Regards,
Debjani.........
Maybe you are looking for
-
Running RHEL6.4 T420 4180-F66 I have the Dock series 3. I'm looking to have 2 23" LCD monitors with the laptop screen working at the same time. I can't get it to work i've tried 100 different ways and can't seem to find anything online except for thi
-
Write off adjustment invoice level
Hi , My client wants abilty to see write off adjustment at invoice level (after writing of any invoice). How can we see that in dispute or collection management. Thanks Nik
-
How to implement business rules by using drolls in OSB
Hi I am new to Drools,can any body tell how to implement drools concept in OSB11,provide any useful links or blogs. Thanks in Advance Mani
-
I have some tabs that i need to change id at runtime, is it possible???
-
Does LR 5.5 RAW 8.5 Recognize Panasonic Cameras & Lenses?
Why doesn't any of the Panasonic lens or cameras show up in the Lens Corrections>Profiles>Enable Profile Corrections window? Under the Lens profile options when I click on the down arrow it shows nothing related to Panasonic. Lightrooms web site says