Logical AND in MDX Reporting Services Parameter

Hi, I would like to implement logical AND on a cube parameter. I have seen examples of hard-coded logical AND in MDX.
(http://salvoz.com/blog/2013/12/24/mdx-implementing-logical-and-on-members-of-the-same-hierarchy/)
But I'm not sure how to apply this to a parameter's MDX dataset.
Here is an example of the automatically generated MDX which uses logical OR:
This is the drop down parameter:
WITH MEMBER [Measures].[ParameterCaption] AS [Department].[Department].CURRENTMEMBER.MEMBER_CAPTION MEMBER
[Measures].[ParameterValue] AS
[Department].[Department].CURRENTMEMBER.UNIQUENAME MEMBER [Measures].[ParameterLevel] AS
[Department].[Department].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue],
[Measures].[ParameterLevel]} ON COLUMNS
, [Department].[Department].ALLMEMBERS ON ROWS
FROM [MyCube]
And the demo report dataset is:
SELECT NON EMPTY { [Measures].[CompanyTbl Count] } ON COLUMNS,
NON EMPTY { ([Product Level No].[Product Level No].[Product Level No].ALLMEMBERS ) }
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM
( SELECT ( STRTOSET(@DepartmentDepartment, CONSTRAINED) )
ON COLUMNS FROM [MyCube]) WHERE
( IIF( STRTOSET(@DepartmentDepartment, CONSTRAINED).Count = 1,
STRTOSET(@DepartmentDepartment, CONSTRAINED), [Department].[Department].currentmember ) )
CELL PROPERTIES VALUE,
BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING,
FONT_NAME, FONT_SIZE, FONT_FLAGS

Hi,
I can see there just one parameter @Department@Department in your script. But if you had two parameters that should return resultset affected by two parameters. You can do it as either select from subselect from subselect.
Example 1
SELECT
{x} ON COLUMNS,
{ROWS_SET} ON ROWS
FROM
(SELECT StrToSet(@Param1) ON COLUMNS FROM
(SELECT StrToSet(@Param2) ON COLUMNS FROM
[CUBE_NAME]
Or crossjoin between 2 parameters
SELECT
{x} ON COLUMNS,
{ROWS_SET} ON ROWS
FROM
(SELECT StrToSet(@Param1)*StrToSet(@Param2) ON COLUMNS FROM
[CUBE_NAME]
Jiri
Jiri Neoral

Similar Messages

  • QSUF (Query string url filter) and SQL Server reporting services report viewer parameters

    Hi,
    this is my issue:
    I have a SQL Server reporting services web part on a page with a report with 1 parameter, lets say it's a client list
    Then i have a QSUF that will be used to filter the clients list through the URL
    However, once i connect the filter and the report viewer web part, the parameter goes away and is no longer accessible
    I'd like to somehow keep the parameter visible, in case there is no parameter sent through the URL, i would like the user to be able to choose a client from the parameter drop down list
    I saw that there is a "send empty if no values are passed" option, but i can't seem to get this working properly and i don't know if this option will make the parameter visible again
    Any help would be appreciated
    Thanks.

    Hi,
    According to your post, my understanding is that the query string url filter web part not worked well with SQL server reproting services web part.
    Did you use the Wiki page layout in your environment?
    You can change the page to a web part page, then check whether it work.
    There is a similar thread for your reference.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/4d7584e3-8e1a-48bf-9346-32f8cb480dd1/query-string-url-filter-web-part?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Dsml and SQL 2005 reporting services?

    I usually post over in the IDM forum so be nice to the newbie here :)
    I have a Sun Directory server that I've enabled DSML on. On that side everything is good. However, ideally I want to pull this data into a MS SQL 2005 reporting services report. They have support for XML and web services, but the DSML front end doesn't accept GET requests and I don't know how to send the request as post in reporting services.
    Has anyone else be able to get something like this working?
    Thanks!

    No idea about MS SQL, but is your reporting service able to use files on disk? If so I guess your problem is easily solved by using an app to fetch data from directory server to disk. If you're more adventerous, you write a script in perl/python which acts as a proxy and translates GET requests to POST and relays data back in real time. Not sure if these help or not, just my thoughts.

  • OracleXE and Oracle10gAS Forms-Reports Services

    Hello,
    Can they co-exist in a testing - development environment of Forms-Reports 10g Application ?
    Are there other alternatives of prototyping (without having to think about licensing costs) a Forms-Reports app and make a short demonstration to the client side ?
    Thank you in advnace.
    Pantelis
    PS. When the Application Server 10g r. 10.1.3 will include the Forms-reports services add-in and the Portal ?

    FRS is an installation option under Application Server (Business Intelligence). In a full blown installation (which includes more advanced features, but none specific to how Forms work), there are two components: an infrastructure and the application server (that name gets used more than one way, sometimes context matters).
    For a simpler, Forms and Reports only version of this, several years ago (probably from all the howls of complaints regarding how poorly iAS was first deployed/developed) Oracle came out with a standalone version of Forms and Reports. It still required the Enterprise Edition licensing under iAS, but at least it precluded the necessity of having the other component (the infrastructure) installed.
    Once FRS is installed, it can be managed via an Enterprise Manager type of Web app (it has the same look and feel of other Web-based controllers of Oracle apps such as Database Control and Grid Control).
    So, if all you need is Forms and Reports, no bells and whistles, use the FRS version. FRS is fairly reliable in terms of staying up, you'll probably have more issues with keeping the database up as much as FRS is.

  • SSL and 10gAS Form/Reports Services standalone

    Successfully installed 10g Forms and Reports Services standalone (without Infrastructure). Successfully created a new Reports Service and it has been running OK (with some bugs crashing/restarting reports occasionally, inconsistent web-based information, inconsistent logs). Next step is to get certificate for this SSL working. Note 250532.1 does not help our environment since we don't use Infrastructure. Even tried to use the Command C:\OraHome1\jdk\bin\keytool to begin with certificate but it just does not work. Oracle tech support told me SSL is not yet for standalone FR Services.
    I'd like to know if anyone has other suggestion/experience about configuring SSL on a standalone FR Services to make https working.
    Thanks.

    Here you go. Here is how to make a 9.0.4 Forms and Report Services only install SSL enabled.
    1. Open Enterprise Manager.
    2. Disable Web Cache component.
    2a. optionally stop Enterprise Manager service to save resources.
    3. Edit httpd.conf file.
    3a. On line before ClearModuleList, add this:
    LoadModule ossl_module modules/ApacheModuleOSSL.DLL
    3b. Now after the last AddModule which is just before "<IfDefine SSL>", add this line:
    AddModule mod_ossl.c
    3c. Make sure you have these two lines:
    Listen 80
    Listen 443
    If you have something else like Listen 7777, you can remove these.
    3d. Now add these lines just before "SetEnv PERL5LIB":
    <IfModule mod_ossl.c>
    AddType application/x-x509-ca-cert .crt
    AddType application/x-pkcs7-crl .crl
    SSLPassPhraseDialog builtin
    SSLSessionCache shmcb:logs\ssl_scache(512000)
    SSLSessionCacheTimeout 300
    SSLMutex sem
    SSLLog logs\ssl_engine_log
    SSLLogLevel warn
    <VirtualHost default:443>
    DocumentRoot C:\orahome1\Apache\Apache\htdocs
    ServerName server.yourdomain.com
    ServerAdmin [email protected]
    ErrorLog logs/error_log
    TransferLog "logs/access_log"
    Port 443
    SSLEngine on
    SSLCipherSuite SSL_RSA_WITH_RC4_128_MD5:SSL_RSA_WITH_RC4_128_SHA:SSL_RSA_WITH_3DES_EDE_CBC_SHA:SSL_RSA_WITH_DES_CBC_SHA:SSL_RSA_EXPORT_WITH_RC4_40_MD5:SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
    SSLWallet file:C:\OraHome1\Apache\Apache\conf\ssl.wlt\default
    <Files ~ "\.(cgi|shtml)$">
    SSLOptions +StdEnvVars
    </Files>
    <Directory cgi-bin>
    SSLOptions +StdEnvVars
    </Directory>
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
    </VirtualHost>
    Listen 443
    </IfModule>
    As you can tell, this is on a Windows server so you'll need to change the location of the default wallet to the correct directory. On Windows, a default wallet with a cert is provided.
    Save the httpd.conf file and restart the HTTP_Server. HTTP and HTTPS now works. HTTPS should prompt you that the cert doesn't match but it is listening.
    Get your wallet configured now and install it. Restart HTTP_Server and you are done.
    That SSL section was borrowed from a test install of 9.0.2.3 that had all of that included. I'm sure you could do the same by borrowing from a full install of 9.0.4.
    Now you could use WebCache which is pretty straight forward. Look on Metalink if you don't want to turn off WebCache on how to configure a wallet with it. I prefer to use Apache SSL but that is just me. :)

  • Migrating from Crystal Reports Charts using TopN and "Other" to Reporting Services

    I am currently migrating several Crystal Reports that have charts.  The chart series is set to use the TopN values in a count, and combine the rest of the series into one series titled "Other".  I see how to filter the chart using TopN, however I need to still show the rest of the data grouped as "Other".  I think the solution I need is to create a group expression that uses some sort of IIF function to create the "Other" group, but I haven't found a function that I can use to get the results I need.  Any ideas?
    Scott

    We were looking at report deployment options and evaluating SSRS vs Crystal Report Server.  There were several reasons we decided to go with SSRS:
    Cascading Parameters
    Ability to use multiple data sets in one report
    SSRS seemed more user-friendly than CRS
    There were a few other considerations I can remember now, but the final reason was price.  My company already had the licenses for SQL Server.  However, even if that was not a consideration I still would have gone with SSRS.
    Hope this info helps.
    Scott

  • Order of stop and start of reporting services

    Hi All,
    I am using 11.1.1.3 version in my laptop,i want know the correct order of stop and start the services,please help me on this.
    Thanks
    Hypuser

    The full order list can be found at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • What to specfify in CA Reporting services integration (Report server web service URL) when using SSL for both SharePoint and SSRS?

    Hello,
    We are using Sharepoint 2010 and SQL Server reporting services 2008 R2.    We have the sharepoint site bound to port 443 using a certificate.   We also have the same certificate bound in the reporting services configuration manager's
    web service URL tab.    In CA should we put the SSL URL or the non SSL URL?    Right now in CA it has the then non SSL URL,
    http://fakehostname/ReportServer_REPORTSERVICE.     We have some sporadic issues and I am wondering if setting this to our SSL URL will help.    Please let me know
    if you have any questions.
    Thanks,
    Sean

    Hi,
    Regarding this issue, it should be no issue for setting (https) according :
    https://msdn.microsoft.com/en-us/library/bb630447.aspx
    https://msdn.microsoft.com/en-us/library/bb677369.aspx
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0ada85b1-e2d2-44a8-8443-74eca74f5745/ssrs-cannot-connect-to-https-sharepoint-2010-401-unauthorized
    I notice you mentioned that you have some sporadic issues, what are these issue? If there are errors, please post the detailed information about the errors.
    What is the mode type of SQL Server Reporting Service, native mode or SharePoint mode?
    The screenshot of the web service URL:
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Workflows 2013 and SQL Report Services: Configure on Independent Servers or Existing App Servers?

    Currently, my SharePoint 2013 Farm has Workflows 2013 and SQL Report Services installed on app servers, along with other applications. Workflows 2013 isn't working correctly (installed prior to my coming on board with the organization), I'm assuming it
    is a configuration issue, but rather than re-configure, I've read that is recommended to be a standalone server. It was also recommended by a MSFT rep that our report services have its own independent server. Currently, Report Services is also installed on
    an app server that runs other applications on the farm.
    Has anyone had any experience with installing Workflows 2013 and/or SQL Report Services on independent vs. existing application servers?
    Additionally, my existing application servers have 24 GB of RAM (I believe the recommendation for SharePoint production environments is 12 GB), should I plan for the potentially new servers (Workflows and Report Services) to also have 24 GB of RAM? Not really
    sure if it will be needed if they have dedicated tasks.
    Thanks for any input you can provide!

    It entirely depends on load. WFM will work just fine installed on servers in the SharePoint farm. SSRS preferably should go on the end-user facing servers for better performance.
    The questions you're asking are all "it depends" :)
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Report service Integration (sql 2012 and SharePoint 2013) error Report Server WMI Provider error: Invalid namespace

    Report Server WMI Provider Error: Invalid namespace
    Domain Server, Sql2012 server and SP2013 Server (3 vm servers)
    the sql server reporting services service application and applications Proxy are installed and started (SP2013 Sever)
    the sql server PowerPivot system Service and SQL server Reporting Services Service are Started (in Services on Server)
    in sql server 2012 sp1 reporting service configured (web service URL and Report Manager URL are configured and tested,  the database report server mode is native) (SQl 2012 Server)
    under general Application Settings .. trying to setup the "Reporting Service Integration" give us the above error message (Report Server WMI Provider Error: Invalid namespace)
    I was looking for all blogs and TechNet material but without success.

    Follow these steps:
    1) Uninstall SSRS from the Database Engine server (MSSQLSERVER instance).
    2) Install SSRS on the SharePoint server using the "Reporting Services - SharePoint" install option during SQL Feature selection, no other services are required (e.g. you do not need to install Database Engine services).
    3) You should then see SSRS as a Service Instance in Central Admin -> Manage Services on Server, at which point you can also create an SSRS Service Application.
    While this guide (http://msdn.microsoft.com/en-us/library/jj219068.aspx#bkmk_install_SSRS) walks you through it, this is for a single server install where the Database Engine is also installed on SharePoint, not something you want to do.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Unable to see the ReportServer and ReportServerTempDB post the Installation of reporting services engine.

    Folks,
    I have created a standalone instance of sqlserver 2012 and installed the reporting services engine features .All are working fine post the install  and also for quite sometime.After few days i pointed out seeing that reporting services databases's ReportServer
    and ReportServerTempDB are deleted/removed from the instance.Can you please suggest how these DB's can be recreated.
    There is not valuable information being stored in these DB's and as a matter of fact we are not using these DB's as well.But however i wanted the reporting DB's should exist for future use.
    Thanks in advance.
    Surendra.

    Hello,
    As Tibor wrote, you can use "Reporting Services Configuration Manager" to Change/create a new database for the SSRS instance:
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Reporting Services point

    I'm trying to install the reporting services role and have hit a road block. We have one primary site and the site database is in a cluster with 3 nodes. The SQL Reporting Services is not installed on the cluster nodes but is installed on its own database
    server. Does anyone know if this configuration can be used? If so any help would be appreciated.
    I think I should be able to add a new Site System Role for the server hosting the SQL Reporting Services in Administration and install the reporting services point on that site system.  
    Thank you

    Hi,
    Please refer to the links below:
    Deploying SCCM 2012 Part 12 – Installing and Configuring Reporting Services Point
    http://prajwaldesai.com/deploying-sccm-2012-part-12-installing-and-configuring-reporting-services-point/
    Configuring Reporting in Configuration Manager
    http://technet.microsoft.com/en-us/library/gg712698.aspx#BKMK_InstallReportingServicesPoint
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Reporting Services as a generic service in a failover cluster group?

    There is some confusion on whether or not Microsoft will support a Reporting Services deployment on a failover cluster using scale-out, and adding the Reporting Services service as a generic service in a cluster group to achieve active-passive high
    availability.
    A deployment like this is described by Lukasz Pawlowski (Program Manager on the Reporting Services team) in this blog article
    http://blogs.msdn.com/b/lukaszp/archive/2009/10/28/high-availability-frequently-asked-questions-about-failover-clustering-and-reporting-services.aspx. There it is stated that it can be done, and what needs to be considered when doing such a deployment.
    This article (http://technet.microsoft.com/en-us/library/bb630402.aspx) on the other hand states: "Failover clustering is supported only for the report server database; you
    cannot run the Report Server service as part of a failover cluster."
    This is somewhat confusing to me. Can I expect to receive support from Microsoft for a setup like this?
    Best Regards,
    Peter Wretmo

    Hi Peter,
    Thanks for your posting.
    As Lukasz said in the
    blog, failover clustering with SSRS is possible. However, during the failover there is some time during which users will receive errors when accessing SSRS since the network names will resolve to a computer where the SSRS service is in the process of starting.
    Besides, there are several considerations and manual steps involved on your part before configuring the failover clustering with SSRS service:
    Impact on other applications that share the SQL Server. One common idea is to put SSRS in the same cluster group as SQL Server.  If SQL Server is hosting multiple application databases, other than just the SSRS databases, a failure in SSRS may cause
    a significant failover impact to the entire environment.
    SSRS fails over independently of SQL Server.
    If SSRS is running, it is going to do work on behalf of the overall deployment so it will be Active. To make SSRS Passive is to stop the SSRS service on all passive cluster nodes.
    So, SSRS is designed to achieve High Availability through the Scale-Out deployment. Though a failover clustered SSRS deployment is achievable, it is not the best option for achieving High Availability with Reporting Services.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Unable to insert sql server reporting services report viewer webpart

    Hello,
    We are trying to add a SQL Server Reporting Services Report Viewer and when we click add we get the following error message
    The file you imported is not valid. Verify that the file is a Web Part description file (*.webpart or *.dwp) and that it contains well-formed XML.
    Does anyone know what the fix to this is?

    Hi,
    The Report Viewer Web Part is a custom Web Part that is installed by the Reporting Services Add-in for SharePoint Products and associated with report definition (.rdl) files that are processed by a Microsoft SQL Server Reporting Services report
    server.
    To install the Web Part, you must run Setup for the Reporting Services Add-in. You should not install or uninstall the Web Part independently. It is part of the add-in and can only be installed through the add-in setup package. The Report Viewer Web Part
    file name is ReportViewer.dwp. It is located in the Program Files\Common Files\Microsoft Shared\web server extensions\15\template\features\reportserver folder and should not be moved to other folders.
    To use the Web Part, you must have installed and configured the Reporting Services Add-in and configured the report server for SharePoint integration.
    For more information,you can have a look at the blog:
    http://msdn.microsoft.com/en-us/library/jj219068.aspx
    http://msdn.microsoft.com/en-us/library/aa905871.aspx
    http://msdn.microsoft.com/en-us/library/bb522800.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • SQL Server Reporting Services Add-In disappered but SSRS Service Application is there

    Good Day,
    I am using SQL Server 2012 SP1, and SharePoint 2013 SP1.
    In the SharePoint Central Admin, Reporting Services Add-In is missing but in the "Manage Service Application" page, SQL Server Reporting Services Application is appearing and I have created SQL Server Reporting Services Application. And, in
    the "Services on Server page", the "SQL Server Reporting Services Service" is started.
    I would like to configure SSRS on SharePoint Central Admin for my SSRS reports.
    Please help me, how to get Reporting Services Add-in the SharePoint Central Admin.
    Thanks in advance

    Hope you have followed all steps below:
    http://blogs.msdn.com/b/biblog/archive/2012/12/04/installing-and-configuring-sql-reporting-services-on-sharepoint-2013.aspx
    http://technet.microsoft.com/en-us/library/ms144289.aspx
    http://technet.microsoft.com/en-us/library/gg492278.aspx

Maybe you are looking for

  • HT201269 can you transfer money from an itunes account to another

    i have ios7.2 on my iphone 4s i have not purchased anything from itunes since april and now i tried to purchase a movie but it said i had to awnser questions that were asked 2 years ago and it said that until i have the right awnser i will be locked

  • Need help to this request urgent plzz

    Hi i am new to coldfusion i had a form and in form we have two date fields like date1------------ to date2----------------  and i   need to make the second date field default to 7 calendar days from the first date field that was entered.The new date

  • "file in use" and other "unexpected" error messages

    I may have found a bug in Tiger, and in case nobody has a plausible explanation for the problem, I will send a bug report: I copied a locked file (shows a little lock symbol in its icon) from one Mac to the other via a network share (using Finder). I

  • File Name with extension

    HI Group, I am processing Input file with name  <b>FILE_yymmdd_HHMMSS.txt0028</b> ,I need output file as <b>FILE_ddmmyy_HHMMSS.txt</b>. Cany body suggest!!

  • Dreamweaver CS6 "Not Responding" with TypeKit on Windows 8

    My Dreamweaver CS6 (Cloud Install) on Windows 8 freezes up when i type code in "code view" to "Not Responding". It seems that it is the two lines from TypeKit that cause the problem (<script type="text/javascript" src="//use.typekit.net/xxx.js"></scr