I'm trying with a static chart in spagobi server and now I need to create a dynamic chart.
How can I set a date parameter for a chart in spagobi server?
1- First of all, edit your Dataset to make it dynamic, add a filter (with you date parameter) in you where statement or whatever..
2- Then, you have to create a LOV (list of value), then create an Analytical driver which take his values from the LOV you already create and finally edit you chart document to add a new parameter which will be linked to the just created Analytical driver.
3- The name of your parameter in your Dataset must have the same name as the url in the parameter you define in your chart document.
Hope this steps will help you
Related
I created the custom variable {{year_var}} in SQL lab and assigned a value in the parameter menĂ¹: {"year_var":2014}. After checking that the query is running I created a virtual dataset, a chart and a dashboard.
My question is: How can I assign a value to {{year_var}} from the filter menĂ¹ in the dashboard?
I have learned to create maps from the dataset in SSRS but I do not see how to modify the map based on the parameter values.
For instance, I load the sql which contains 100 routes. The parameter would limit the user to view the information on one route. But the map does not seem to be affected by the parameter; it shows the entire dataset no mater the parameter.
How to force the map to also be limited by the parameter?
Have you either a) Added a filter to the dataset, or b) added a WHERE clause in your data set with the route set to the report parameter?
Example:
SELECT route
FROM route_table
WHERE route = #routeparameter
I have created two bind date parameters in oracle reports on top of that I have created 3 more general parameters but I am unable to map those parameters to the query.
Please help me how to map the parameters(other than bind parameters).
as i have understood your question is that you want to know how to include the parameters you have made into the query. for this just write as below ..suppose your parameter name is p_from_date. now u want to query the value where there the value is equal to your parameter. then it could be written as
where effective_date=:p_from_date.
I have a report created in SSRS in client mode, which is run disconnected: I create the data source in code and pass to the report as a DataView. It works ok.
But I need to be able to reference from the project to some objects (variables, whatever) from my application, as follows:
I need some totals that are not calculated based on data in report. e.g. the reports show total sales in a period, with own total, but I need to display a field in report footer - previous month total (actually they are about 10 other "previous" totals).
I need to have some columns show / hide based on some settings in the application (e.g. I have application option : Show Previous month sales)
Any thoughts on how to do this?
Thank you
Q1-> In order to use data in your reports, you need to specify the data inside of a Datasource object. You cannot simply use the variables if that is what your intentions were. So yes, you are doing this the right way. *** Sorry, you could theoretically used Report Parameters for this.
Q2-> This is the real reason to use Report Parameters. You can pass parameters to the report to do exactly this. If the HideColumn parameter (for example) is set to true, you could hide all the columns that need to be hidden.
http://msdn.microsoft.com/en-us/library/ms251750%28VS.80%29.aspx
For question 1 - the data - the easiest approach would be to create a DataTable in memory and add it as another dataset OR to add fields for your original dataview that contain these values.
Question 2 - To hide or show the columns based on settings make the column visibility an expression based on the value of a parameter, in your code behind set the parameter value to your application setting.
I am new to reporting services and have a reporting services 2005 report that I am working on to use as a base report template for our organization. I am trying to place the date that the report was last modified on the report server into the page header of the report. However, I keep getting a 'ParamX' parameter is missing a value error when I try to This is what I have done:
Set up a Parameter ReportName with a default value of Globals!ReportName. It is also hidden and internal.
Set up a Dataset ReportHeader that calls a stored procedure that returns the date the report was last updated or another date, if the report is not on the report server. It has a parameter #ReportName assigned to the Parameter!ReportName.Value. The Dataset returns values when run on the dataset tab in the BI tool.
Set up a Parameter ReportVersion that has a default value Query From based on the dataset ReportHeader and picking the ModDate column. It is the last parameter in the report parameters list.
I assign a textbox to the parameter.
When I preview, I get "The 'ReportVersion' parameter is missing a value whether I place it in the report body or page header (which is where I want it). I have deleted and added the parameter again, toyed with the hidden and internal settings on it.
What does this error really mean, what I am missing, and can I even do this with parameters?
Thanks In Advance
Jim
If I understand what you're doing, it sounds like you want to be using a field where you're implementing a parameter...
You are returning the ModDate from the data source, correct? If you're doing this, you can simply throw a text box in there, and use something like this: =Fields!modDate.Value to display it.
Parameters are values that go in to the query, fields are what it returns.
Hope this helps...
EDIT:: OK so are you trying to retrieve the mod-date column value from the reportserver db? If that's what we're talking about, you'll need to add a few things to the report. Add a datasource to report db, a dataset containing the date (query below), a list object in the report linked to the dataset, and a textbox in said list object to display the field. If you hit the report server with a query like this:
SELECT MAX(ModifiedDate) AS ModDate FROM catalog WHERE name='myReportName'
That will return your modifieddate from the ReportSErvices Database as a field that you can use.