I have created the following macro prompt in Cognos Report Studio 10.2 to grab a 'Officer Employee 2011 Jan' dimension that will vary in the date that is appended to the end. I have versioned dimensions in a 2008 SSAS cube of the same Officer Hierarchy where a new version of the hierarchy is created each month. I would like the user in a report, to be able to select a month, (from a date value prompt drop down, and when they select the month, this macro i am building will subsitute the '?DateSelection? part of the macro with the correct dated dimension. the dimensions are dynamicaly created with the name as above, but the date will vary with the month. If i were to manually in the macro, replace ?DateSelection? with say '2011 Jan', it will pull up the correct dimension. Can someone help me to alter this macro to do the same dynamicaly based on the ?DateSelection? prompt i included in this macro? Thank you!
#prompt ('Officer', 'token', '[CPDM].[Officer Employee ' +
'?DateSelection?' + '].[Officer Employee Hierarchy]')#
The following expression worked for me on SSAS 2008 GOSalesFact_EN_MSAS2005 package:
#prompt('Orgcode','token','[GO Sales Fact].[Organization].[Organization].[Organization
Code1]','[GO Sales Fact].[Organization].[Organization].[Organization C','',']')#
So, I guess equivalent expression for would be:
#prompt ('Officer', 'token', '[CPDM].[Officer Employee].[Officer Employee 2011 Jan]',
'[CPDM].[Officer Employee].[Officer Employee 2011 ','',']')#
The Jan hierarchy is the default hierarchy in case you did not choose anything.
Now all you have to do is create a value prompt refer to the Officer prompt and put in a list of months ('jan','feb',...).
The prompt macro refrence of Cognos 10.2 is located here (Framework manager):
Creating prompts with query macros
and here (Report Studio):
Creating Prompts Using Query Macros
Related
I want to designed a report in a cognos which showcase data for current month or prevoius month choice on prompt page, need to get logic for this.
Please advice if any one has solution for this...
2 suggestions
Scenario 1) Put the current month and prior month values in a conditional block
Or if you don't want to do that,
Scenario 2)
Create two lists
One each way you want to present the data
Current Month
Prior Month
Then use rendering on the prompt to show the list the user selected
I need a help in deciding how to get this task finish.
I created SSRS report. which is taking 4 parameters. They are as follows.
Date(By default is Today's Date)
Site (Different Office Location)
Service Provider's Name ( Agent's name who will do the service)
Type of service (Air conditioning repair, Furnace Repair,
Window Repair etc)
I am able to run the report via selecting each parameter since they all are single value parameters.
Now I want to email this report as an email attachment for each Provider(Agent) for their daily schedule(Next Day).
So I am hoping that I have to run the report and select each and every Site then each and every associated provider's name to the selected site and then each and every associated service to the selected providers. Here I don't have to select the day since Date will be by default Tomorrow's date which report will take as parameter.
How can I do this via some kind of SQL or SSRS tool or is there any functionality that BIDS has?
Please let me know.
Thanks.
This can be done with a data-driven subscription. To configure this, start by going to your Report Manager or SharePoint, wherever you're hosting the report. Next, you'll need to write a small query that returns the parameters you want to run the report with. In other words, it should return one row for each version of the report you want to send out. Next, it will ask you to fill out your email settings. You can set fields like the "To" address and your parameters to be populated by a column from your query. The last step is to set up the scheduling.
I have a crystal report that has data grouped by employee like this:
Employee 1:
-Name
-Orders written
-Etc
The report displays all this information. but what I want to do is make a list that is only the employee and when clicked on will drill down to the info. Even better would be is there a way to make a drop down to select employee?
The report is created from a sql query command with parameters for date to get the amount of orders.
Crystal Reports has DrillDown functionality. Maybe this will help. https://msdn.microsoft.com/en-us/library/ms227343(v=vs.80).aspx
i have a database used at work for evaluating calls, the database is somewhat dated and originally created on Access XP. Once evaluated these calls are given a score out of 5 which is entered along with other data (such as date, employee name, etc) on a form. I have the reports set up so they generate when you enter the employee name and then the start of a date period and the end of a date period, the report will then generate and show the entries made between those 2 dates. i am trying to include a section on the report which shows an average of the call score for the employee for the period chosen. I understand this may be pretty simple but i'm struggling! cheers, Kris
If you want to work out group calculations on reports, you can either put them in the group header/footer, or report header/footer (for calculations over the whole report).
In this case, placing a textbox with something like =AVG([CallScore]) as the control source in the Report Footer should work.
This page should explain more about using aggregate functions in reports: http://office.microsoft.com/en-gb/access-help/summing-in-reports-HA001122444.aspx
I have a T-SQL view with integer fields. I need a report on a monthly basis regarding the difference from one month to the next, i.e. so many people were engaged in a particular activity on 8am of the 1st of this month, so many the previous month, here is the difference. The numbers fluctuate all the time. I need a variance between 2 snapshots in time.
I am using the SSRS, however in reporting services I can only display the "current" situation. I could run a report at 8am of the 1st of each month and then calculate the differences manually. But how could I automate this calculation and then report on the difference?
I have tried to import data from SQL to 1 Excel spreadsheet from 1 month, then to the 2nd spreadsheet from the 2nd month. The 3rd spreadsheet calculates the difference. But how do I create a nice looking report from Excel?
Additionally I cannot send the report by email. It has to be available online.
Furthermore, each office wants their figures to be confidential and not visible to another office.
Thanx in advance.
Can you add a UserCount table that stores each office's user count for each month? It could have columns like:
id
date
user_count
office_id
You would insert a new row each month based on what the view tells you that month for each office. Then it's as simple as exporting that table to Excel and graphing it using Excel's built-in graphing tools.