dbTalk Databases Forums  

Actions calling sql report

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Actions calling sql report in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Vardinghus
 
Posts: n/a

Default Actions calling sql report - 03-01-2005 , 05:27 PM






Hi

I desperately need to call an sql report based on a selection int he OLAP
cube. But I have some difficulties getting the logic right...

From AS I can use for instance an URL action to call a reporting services
(or report portal) SQL report and bring parameters along to control the
output of this report.

The parameters I send along could be determined by dimx.currentmembers in
the MDX URL statement....

The problem here isn't the exact values - the problem is the All member ...
where do I do something about this .... do I handle this in the SQL report
.... have some kind
of logic that says to disregard currentmembers when choice is all member ? I
cannot avoid sending dimensions along where All member is chosen ? What
about the
SQL sentence then ?

How would I do that with reporting services / Analysis Services ?

Help will be greatly appreciated...

/Michael



Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Actions calling sql report - 03-01-2005 , 08:18 PM






Maybe there's a better solution; but one way would be to build the SQL
query as an expression in Reporting Services, rather than using SQL
query parameters (this method is also used for MDX 2000 queries). In
that case, the "where" clauses could be selectively added, only when the
corresponding report parameter is not "All". For Time dimension example,
expression fragment is like:

Quote:
+ iif(Parameters!pTime.Value = "All Time", "",
" and ReportTable.TimeColumn = " + Parameters!pTime.Value)
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply With Quote
  #3  
Old   
Michael Vardinghus
 
Posts: n/a

Default Re: Actions calling sql report - 03-02-2005 , 02:36 AM



Sounds like a way to go....thanks Deepak....

"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote

Quote:
Maybe there's a better solution; but one way would be to build the SQL
query as an expression in Reporting Services, rather than using SQL
query parameters (this method is also used for MDX 2000 queries). In
that case, the "where" clauses could be selectively added, only when the
corresponding report parameter is not "All". For Time dimension example,
expression fragment is like:


+ iif(Parameters!pTime.Value = "All Time", "",
" and ReportTable.TimeColumn = " + Parameters!pTime.Value)



- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.