Showing posts with label builder. Show all posts
Showing posts with label builder. Show all posts

Friday, March 30, 2012

Report Parameter in Report Builder

How do you create report parameter in Report Builder? I want to create a new field and add to the report. When I run the report, it'll prompt for entering the value.

Thanks in advance!!

Brian wrote a blog article about this: http://blogs.msdn.com/bwelcker/archive/2006/07/29/682444.aspx

-- Robert

Friday, March 23, 2012

Report Models for OLAP Cubes

Dear all
I studied BOL to find out how Report Models and Report Builder work. In
there it is written that Report Models from Cubes can only be created and
edited inside SQL Server Management Studio or Report Manager but not from
BIDS. They show this as an advantage, because automatical generating saves
time. This is true. But it is also less flexible!
Do you plan to make Cube Report Models accessible in BIDS in the near future
or did I miss a point?
Thanks for your help,
Kind regards,
MarcHello Marc,
You could create a SSAS datasource in the Report Project or Analysis
Project. And then, you could add this existing datasource into your Report
Model Project.
After that, you could create the Report Model in the BIDS.
Hope this will be helpful!
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Hello Wei
Thanks for your answer. I tried this way, but I failed to create the
necessary data source view...
Marc|||Hello Marc,
You could create the data source view in the Analysis Services Project and
use it in the Report Model Project.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================(This posting is provided "AS IS", with no warranties, and confers no
rights.)|||Hi Wei
Thanks for your answer. My problem is still the same - it looks that the
data source view connects always to a relational database - even when I use
the one from an analysis services project.
But I want to create a report model that connects to a cube.
Thanks for your help,
Marc|||Hello Marc,
Sorry for misunderstood.
Your mainly concern is that you need to edit the report model which
generated in Report Manager or Management Studio.
You could do this by following.
After you generated the report model, you could right-click the report
model in the Management Studio and click Edit. It will save a smdl file in
your local machine. And then, you could add this file to your report model
project. You do not need to add any datasource then. You could edit the
report model in your BIDS.
Hope this will be helpful!
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Hello Wei
OK. I created a Report Model Project and added the report model I saved
before out of management studio to my local machine.
After adding BIDS gives me a error message: "...smdl cannot be loaded: The
project must have a data source view associated with the model".
And a second message: Error loading'...smdl': The project must have a data
source view associated with the model.."
But this is exactly what I can not do, because I do not have a data source
view that connects to a cube.
mmmm... Any ideas?
Regards,
Marc|||Hello Roger,
After I save the smdl file to my local machine, I checked the smdl file and
find that it embedded the datasource view.
So when I add the smdl file to the BIDS, it will get the datasource view
information and generate a datasource view.
Please try to open the smdl file you saved and check whether it contained
the datasource information.
If it contains, you could add it to the BIDS.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi Wei
Thanks for this information. Unfortunately I still fail to add the smdl file
to my Report Model Project.
How did you find out that there was an embedded data source view? When I
open the file in Visual Studio, all I receive I see is unformatted xml
text... When I search it for the extension dsv, I do not get a result. But I
think this is the wrong way to look.
Can it be that I need to change a setting in Management Studio that it gives
also the data source view with it?
Best regards,
Marc|||Hi Wei
OK. I checked it to find a enbedded dsv in my report model generated from a
Cube (!) but could not find the data source view within this smdl file.
After that I generated a report model from a relational database (!), edited
this smdl file and added to BIDS like you said. This worked very well.
So it looks that your way works for a relational report model but not for a
analytical (=SSAS, Cube) model.
My goal is to edit a report model generated from a Cube in BIDS...
Any ideas? Thanks Wei!
Marc|||Hi Marc,
I will consult the internal team to check about this issue. I appreciate
your patience.
Sincerely yours,
Wei Lu
Microsoft Online Partner Support
=====================================================
PLEASE NOTE: The partner managed newsgroups are provided to assist with
break/fix
issues and simple how to questions.
We also love to hear your product feedback!
Let us know what you think by posting
- from the web interface: Partner Feedback
- from your newsreader: microsoft.private.directaccess.partnerfeedback.
We look forward to hearing from you!
======================================================When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================.|||Hi Marc,
After consulting our internal team, I confirmed that you could only
generate a model via Report Manager / SSMS.
You may send your feedback to the following url:
http://connect.microsoft.com/sqlserver.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi Wei
Thanks for your support. I will post this feedback at
http://connect.microsoft.com/sqlserver.
Kind Regards,
Marc

Report Model/Builder

In a database there are 2 tables, one is student and the other is activities. A student can have multiple activities. There is a one to many relationship between student and activities based upon student_id. Not every student has an activity.
In report builder I would like all of the students to appear regardless of whether they have an activity or not. By default, only those students who have activities appear.

This appears:
Student Activity
1 Track
2 Track
4 Volleyball

I would like to see:
Student Activity
1 Track
2 Track
3 NULL
4 Volleyball

What settings need to be tweaked to make this happen?

Thanks for your assistance.Hi

What query are you using to generate this report? I created 2 tables: student, activity. Not all students have activities. If I use the following query:

select * from student
left outer join activity on student.i = activity.i

where i = student id in both the tables,
I get the list of students, activities (even for students who dont have activities mapped on the activity table)

The Left Outer Join operator returns each row that satisfies the join of the first (top) input with the second (bottom) input. It also returns any rows from the first input that had no matching rows in the second input. The nonmatching rows in the second input are returned as null values. If no join predicate exists in the Argument column, each row is a matching row.

Is this what you were looking for?

Thanks

|||Within Report Designer you can create a query and specify any type of join you need. This is IN REPORT BUILDER, where you are not able to specifiy the type of join you would like to use. The query is generated from the report model and dragging fields into the design area.

Thanks for your response though.|||Hi Chris

Can you try this out and let me know if this works?

Create a report model and within the data source view, right click and add a NEW NAMED QUERY, here you can specify a query with joins. Once this query is created, create the report model. This should also list the query that you have created, apart from the 2 tables.

Now from Report Builder, select this datasource and drag/drop your query.
Remove the columns that you dont want (I just had student id and activity)
and run report.

This will give you all records, even the students who dont have activities listed.

If you are just using a report model, I think you need to edit that and add a query into that, so you can use it in your report builder to get the required data.

Thanks.|||

Actually, you don't need to create a named query to do this. You can do it in the Report Model. In your example, you need to set Cardinality=OptionalMany on the role from Student to activity. This tells RB that not all students have activities (so don’t do an inner join or you might lose a few).

Report Model is generating without data

I have been generating report models for users to use with Report Builder and there is no data when they select the model. I noticed that the tables I chose did not have a primary key and when I chose a different table, with a primary key, and generated a model from it, then there was data for the user to use in Report Builder.

Is there a documented work around or will I need to set a primary key on each table?

You don't need a physical PK on each of your tables. Instead, open up the DSV in your Report Model project, right click each table, and choose "Set Logical Primary Key" and the appropriate field. You'll then need to rebuild the model. See if this works for you!|||Thanks Russell! That worked just fine after I rebuilt the model.

Report model GetUserID() function

Guys,

What is "GetUserID()" function returns when the report server, report builder and everything is using windows authentication?

http://msdn2.microsoft.com/en-us/library/ms156292.aspx

Enkh.

Just use USERID

|||

"Just use USERID" What do you mean? USERID? Is that a global variable, windows authentication username?

Enkh.

|||

More details:

USER!USERID

|||I don't really understand it. Can you please just describe it for me or someone? Is it windows authentication username or some kind of ID?sql

Wednesday, March 21, 2012

Report Model Filter

Hi,
When creating a report model, is it possible to configure a field so
that a user must apply a filter when they create reports in Report
Builder?
In my case, I have a simple report model that contains summarized data
grouped by date and then by hour. Due to the amount of data in the
underlying table, I would like for users to be forced to filter on
either a specific date or a range of dates if possible. Even better
would be for me to be able to set a default date range for the date in
the model.
Does anyone know if what I am attempting is possible or has anyone
done something similar?
Thanks in advance,
Shane.You can use couple of things, depending on your requirement.
1. "Prompt" where it will wait for user input. but there is no multi select.
2. "From...to" this will be suitable for your requirement where in the user
can give the from and to date so that it will filter the required.
Amarnath, MCTS
"shanejokeeffe" wrote:
> Hi,
> When creating a report model, is it possible to configure a field so
> that a user must apply a filter when they create reports in Report
> Builder?
> In my case, I have a simple report model that contains summarized data
> grouped by date and then by hour. Due to the amount of data in the
> underlying table, I would like for users to be forced to filter on
> either a specific date or a range of dates if possible. Even better
> would be for me to be able to set a default date range for the date in
> the model.
> Does anyone know if what I am attempting is possible or has anyone
> done something similar?
> Thanks in advance,
> Shane.
>

Report Model Descriptions

Does anyone know if there is a way to display the "description" field of an attribute in Report Builder?Descriptions show up as tooltips in the Explorer pane of the Report Builder main window.|||

Thanks Bob,

It's the obvious answers...

Report Model Builder in SQL Server 2005 CTP

Will the model builder have the ability to build models against an Oracle
database? I may be missing something in the CTP but it looks like I can only
make a SQL Server database data source.Directly supported are:
- Analysis Services 2005 data sources
- SQL Server 2000 and 2005 relational data sources
At this point, other data sources (e.g. Oracle) can only be accessed through
the linked server functionality of SQL Server. We are aware that this
approach has restrictions and drawbacks and we are looking into directly
supported additional data sources natively in future releases.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Cooper" <Cooper@.discussions.microsoft.com> wrote in message
news:DEEE25FF-79DA-498C-8977-0EF2C631E8E0@.microsoft.com...
> Will the model builder have the ability to build models against an Oracle
> database? I may be missing something in the CTP but it looks like I can
> only
> make a SQL Server database data source.

Report Model as datasource in ordinary report

I think the report model concept is great and it works well for the report
builder. Can a report model or a data source view be used as a datasource for
ordinary reports? We have a large number of reports built upon complex
relational queries (join join join join...), but pretty much the same query
for all the reports. One way of solving this is by building an olap cube, but
the thing is that all this reports are automaticly genererated from a
"backroom" database for quality checking and then all the data is loaded into
a final datawarehouse. But maybe it's possibel to do this without a cube in
the backroom.OK, I've figured it out myself. A report model can definitly be the data
source for a report and it works very well, actually!
"Erik Hedlund" wrote:
> I think the report model concept is great and it works well for the report
> builder. Can a report model or a data source view be used as a datasource for
> ordinary reports? We have a large number of reports built upon complex
> relational queries (join join join join...), but pretty much the same query
> for all the reports. One way of solving this is by building an olap cube, but
> the thing is that all this reports are automaticly genererated from a
> "backroom" database for quality checking and then all the data is loaded into
> a final datawarehouse. But maybe it's possibel to do this without a cube in
> the backroom.|||I didn't think that it could be, can you clue me in?
"Erik Hedlund" <ErikHedlund@.discussions.microsoft.com> wrote in message
news:EB83FAA1-FCE7-4A89-8125-18FEB3C71489@.microsoft.com...
> OK, I've figured it out myself. A report model can definitly be the data
> source for a report and it works very well, actually!
> "Erik Hedlund" wrote:
>> I think the report model concept is great and it works well for the
>> report
>> builder. Can a report model or a data source view be used as a datasource
>> for
>> ordinary reports? We have a large number of reports built upon complex
>> relational queries (join join join join...), but pretty much the same
>> query
>> for all the reports. One way of solving this is by building an olap cube,
>> but
>> the thing is that all this reports are automaticly genererated from a
>> "backroom" database for quality checking and then all the data is loaded
>> into
>> a final datawarehouse. But maybe it's possibel to do this without a cube
>> in
>> the backroom.|||Create a data source, a datasource view and a report model and deply it to
the report server.
Create a report and select report model as the data source and specify a
connectionstring for it. Example:
server=http://localhost/reportserver;datasource=/Models/name of report model
And then your on!
"Steve MunLeeuw" wrote:
> I didn't think that it could be, can you clue me in?
> "Erik Hedlund" <ErikHedlund@.discussions.microsoft.com> wrote in message
> news:EB83FAA1-FCE7-4A89-8125-18FEB3C71489@.microsoft.com...
> > OK, I've figured it out myself. A report model can definitly be the data
> > source for a report and it works very well, actually!
> >
> > "Erik Hedlund" wrote:
> >
> >> I think the report model concept is great and it works well for the
> >> report
> >> builder. Can a report model or a data source view be used as a datasource
> >> for
> >> ordinary reports? We have a large number of reports built upon complex
> >> relational queries (join join join join...), but pretty much the same
> >> query
> >> for all the reports. One way of solving this is by building an olap cube,
> >> but
> >> the thing is that all this reports are automaticly genererated from a
> >> "backroom" database for quality checking and then all the data is loaded
> >> into
> >> a final datawarehouse. But maybe it's possibel to do this without a cube
> >> in
> >> the backroom.
>
>sql

Report Model API?

Is there an API or a way to consume a Report Model? I want to try and roll my own simple web-based / thin-client Report Builder without using the ClickOnce control.

Thanks,

--jason

Semantic query is an xml document with the schema desribed here: http://msdn2.microsoft.com/en-us/library/ms155870.aspx
Semantic model is another xml document: http://msdn2.microsoft.com/en-us/library/ms155776.aspx
You can get existing semantic model using RS SOAP API GetUserModel. Create reports in RB or use Report Model data source in Report Designer as clue/samples.
You can execute semantic query on its own (without report) using RS URL API ExecuteQuery
Have fun! :)

|||

Cool. I'll check it out. Thanks!

--jason

|||Hi Jason,

Were you able to write your own report builder ? Please let me know how would I query different fields of an entity from a report model that has been published on the reporting service programmatically and make them available to a user in web application and to enable him/her to create a custom report ?

Thanks,

Rashid Khan

Report Model API?

Is there an API or a way to consume a Report Model? I want to try and roll my own simple web-based / thin-client Report Builder without using the ClickOnce control.

Thanks,

--jason

Semantic query is an xml document with the schema desribed here: http://msdn2.microsoft.com/en-us/library/ms155870.aspx
Semantic model is another xml document: http://msdn2.microsoft.com/en-us/library/ms155776.aspx
You can get existing semantic model using RS SOAP API GetUserModel. Create reports in RB or use Report Model data source in Report Designer as clue/samples.
You can execute semantic query on its own (without report) using RS URL API ExecuteQuery
Have fun! :)

|||

Cool. I'll check it out. Thanks!

--jason

|||Hi Jason,

Were you able to write your own report builder ? Please let me know how would I query different fields of an entity from a report model that has been published on the reporting service programmatically and make them available to a user in web application and to enable him/her to create a custom report ?

Thanks,

Rashid Khan

report model and it's datasource

hi everyone,

I created a report model and deployed it. When I open the rpt builder on web I get the following error.

'The selected data source does not have and content available'

Seemed like it would be a easy issue, but I cannot retrieve any data in the rpt model. The datasource I'm using does work for rpts not associated with the rpt model. Any suggestions? It seems like I've missed a step. Thanks, Lisa

If there is no primary key defined, you can build the model, but no contents. Do you have primary key defined?sql