Problem between SSMS and Report ! Filter query not showing data or showing wrong data

Hi all,
In short: I have a report with multiple values such as name of shop, postal code etc. The parameters have no default value and act as "like". If someone enters "krant" he'll get all the shop names that contain "krant" in their
name etc. 
Same goes for postal code, if someone enters 2550 he'll get all data for 2550. The problem although is that if a user start with postal code as parameters and leaves the shop name empty, the shop name is not shown in my report! The other way around it works,
when I enter shop name i'll get all shops + postal code in my report.
I know this is because POS name cannot be shown in report because it's left blank, but I want my MDX query to be able to give me the POS names even if I only enter postal code.
Can someone please please look at my query below? I need to add 4 more parameters this way later on too!
SELECT 
[Measures].[Sales amount]
 ON COLUMNS, NON EMPTY
Filter(
                               [Point of sale].[POS name].AllMembers,
                               InStr(
                                               [Point of sale].[POS name].CurrentMember.MEMBER_CAPTION,
                                               @PAR_POSName
                               ) > 0
*Filter(
                               [Point of sale].[POS postal code].AllMembers,
                               InStr(
                                               [Point of sale].[POS postal code].CurrentMember.MEMBER_CAPTION,
                                              @PAR_POSTAL_CODE
                               ) > 0
*[Point of sale].[Client id].[Client id]
*[Point of sale].[POS id].[POS id]
*[Point of sale].[POS street].[POS street]
*[Point of sale].[POS town].[POS town]
*[Point of sale].[POS housenumber].[POS housenumber]
ON ROWS
FROM [mycube]

You have to use
StrToMember (MDX) /
StrToSet (MDX) /
StrToTuple (MDX) to convert the Parameter; see
Parameterized Reporting Services Reports with Analysis Services as a Data Source
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • How can I fix a problem between Firefox and my printer? When I try to print a window appears Save as ,then another saying Firefox not responding and printing does not work

    I used to be able to print correctly using Firefox as my browser,but something changed in the last month or so,possibly after a Firefox update. I`m not really sure how it happened but there seems to be a problem between Firefox and my printer. So I have been using Internet Explorer as my default so I can print. I would prefer to use Firefox again since that is where my bookmarks are. Is there a way to get the connection between Firefox and my printer back?

    '''Save as''' = sounds like you don't have your printer selected, or you have ''Print to file'' selected
    http://kb.mozillazine.org/Problems_printing_web_pages

  • Do any of you experience Im having with my ipad? I can't make a comment in Facebook for older posts and I can't open numerous comments from old posts of my friends. but everything works perfectly when I use laptop. is there problem between apple and FB?

    do any of you experience Im having with my ipad? I can't make a comment in Facebook for older posts and I can't open numerous comments from old posts of my friends. but everything works perfectly when I use my laptop(non-apple). is there problem between apple and FB?

    Facebook apparently has their site coded poorly for tablets with touch screens. Try using the Facebook app. It is not perfect either but it is better than view in a browser lately.

  • Problems between PE4 and 10

    I have a drawing that was resized to a certain length using PE4. I have now upgraded to PE10 and when I print the drawing , it prints 3-4 times  larger than what it should be. When I view the drawing, the ruler at the top of the screen shows it being the correct length and when I checked the deminsion in the resize box, it also has the correct length. Have I done something wrong or should I delete the drawing and start over from scratch?

    Could you be a little more specific please? Sorry, I am not a tech guy just a poor laymen.
    Date: Thu, 2 Aug 2012 20:30:55 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problems between PE4 and 10
        Re: Problems between PE4 and 10
        created by photodrawken in Photoshop Elements - View the full discussion
    Check your PSE print settings, especially the DPI value in the "Print Quality". Ken
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4595437#4595437
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4595437#4595437. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.

    Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.
    Solutions?

    No, I never really found an easy solution.  I believe it is an issue with some corruption in the iTunes database on the specific device.  In my case, both my iPad and iPhone now show duplicate stream songs if viewed through iTunes on my Mac, but they show different songs.  A couple years ago I had a similar issue on my iPhone, and Apple support suggested I back up the phone, completely reset it, and then restore it from the backup.  It did work, so I imagine it would probably work for my current issues with the iPhone and iPad.  But resetting and restoring an iPad or iPhone always makes me a little nervous that something will get lost.  When I did reset/restore the iPhone, I do have to say, the restore process was 100% perfect and I did not lose any data at all even though Apple support said I might.  If you try to go that route, I would suggest backing the device up both to a computer through iTunes, and to the iCloud so that you have a double backup.
    None of this really resolves the issue with how the iTunes databases are becoming corrupted on the apple devices though, so it is very likely to happen again until they fix it.  I have been unable to determine if there were any specific actions or conditions which caused the corruption to happen in the first place.
    Might be worth another call to Apple support, or dropping in the local Apple store if you have one near by.

  • Anybody having problems in Mail when sending reply messages from a thread and the message is not showing in the Sent mailbox?

    Hello Folks;
    Got a weird one...
    I am sending replies from a thread in Mail and they seem to have been sent (sounds) but they don't show in the Sent mailbox... O-0 These messages seem to have been delivered to cyberspace as they don't show in my Sent mailbox on my IMAP server... This has been happening for the last month... I have checked and verified all of my IMAP settings and Mailbox behavior settings... This is really weird and maybe a bug.... I checked all of my other clients that have access to the server on the same account and these messages do not show there either.... Any ideas?
    --prd54usa

    The messages are getting to the recipient...
    I am on a Comcast IMAP server if this has anything to do with it and the server settings are following the correct server port numbers, SSL settings, etc... I save Sent messages on the IMAP server for 90 days.... None of these "disappearing" messages were on the server for more than a couple of days.. Typically, these messages will get 'hung' in the Outgoing Mailbox for @30 seconds before sending... like they are being scanned for viruses or Mail can't connect to the server all of a sudden...
    I anybody else here is on a Comcast IMAP server, and having this problem of disappearing Sent messages... This would tell us that it might be a Mail Provider issue with their outgoing server...
    --prd54usa

  • Hi, i am having a problem in my ipad 2 , it is not showing main screen just showing a black blank screen in which downloading icon is only shwn which is continously and when i connect to itunes via windows 7 it showing this error (0xE8000065) can any one

    hi, i am having a problem in my ipad 2 , it is not showing main screen just showing a black blank screen in which downloading icon is only shwn which is continously and when i connect to itunes via windows 7 it showing this error (0xE8000065) can any one

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    Finally, if the Restore doesn't work, let the battery drain completely.  Then recharge for at least an hour and Restore again.

  • Can any one explain me the relation between BDC and reports events?

    hi experts.....
    can any one explain me the relation between BDC and reports events? we are using report events in BDC programmes why?\
    Is reports events occurs in each and every concept in ABAP i.e creating custom idocs, smart forms, sap scripts, dialog programmes, module pool technics?
    thanks in advance

    The forums are expert forums. So the first thing I would do is change your name.
    It's like entering a grand prix in a car with a "Student Driver" sign.
    Rob

  • Project Server 2010 - Project Permissions - Users and Groups filter is not working

    Hi,
    While giving permissions from project center ribbon on a project - Users and Groups filter is not working, we are not able to filter any user.
    I am not sure why this error is occurring  i tried giving permissions by opening the project  but still the same filtering is not happening. Below is the screen shot
    We have installed Service Pack 2 and June 2014 CU recently will this effect ?
    Can any one throw some light on this??
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

    Hi Geetha,
    Which IE version are you using? First I'd try to add the URL to the compatibility mode sites, then to the trusted sites (if it is not done already). Then I'd try to set the default browser as IE8 or 9 (pressing F12, developer tool).
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • HT6337 Allow handoff between this mac and your iCloud devices not showing up in general preferences

    Is anyone not seeing this?   the Allow handoff between this mac and your iCloud devices not showing up in general preferences
    Imac 2011 21" mid 2011

    nevermind, Just figured out that my iMac does not support it. Thanks Apple, once again coming up with stupid functionality that only works when you pay more money. 3yr old machine, I guess I need to send it to scrap heap.

  • I purchased a movie and a book and my purchases do not show up on my iPad

    I purchased a movie and a book and my purchases do not show up on my iPad

    Welcome to the Apple Community.
    Audiobooks are not currently part of the content that can be re-downloaded. You should sync your audiobooks to other devices via iTunes on your computer. If your audiobook didn't download correctly or has other problems, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.
    To copy the audiobooks from one computer to another, use homesharing, put them on a memory stick or use your Dropbox if your computers are networked.

  • I have error 39 message and my dvd is not showing up in my computer.i have reinstalled many times a

    hp pavillion p6000 series
    hp dvd rw ad-7251h5 sata cdrom
    i have error 39 message and my dvd is not showing up in my computer

    Hi,
    First, try the automated fixit from Microsoft on the link below.
    Windows 7
    Vista
    Check if the drive is now working.
    If it still doesn't work, click the Start Menu, open All Programs, open Accessories, right click the Command Prompt and select 'Run as Administrator'.  In to the prompt type the following command and hit enter.
    sfc /scannow                 ( note that there is a space between sfc and the / )
    Let the process complete, then type exit and hit enter. 
    Next, click the Start Menu, open the Control Panel and click on Device Manager.  Next click to open DVD/CD-ROM Drives.  Right click the drive and select uninstall.  Do not delete drivers if asked.  When the device has uninstalled click on the 'Scan for Hardware Changes' icon ( usually just below Help on the toolbar ).  Let windows reinstall the drive and see if it now works.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • SCCM 2012R2 Report or Query to show recently installed software

    Hi All,
    It appears necessary to run a report or query to show recently installed applications that have not been deployed by SCCM.
    the report will need to show the pc name  the software that has been installed and the user account that the software has been installed by.
    Any ideas on how to do this ? 
    cheers 

    For SCCM software review Reports, you can check below link
    http://myitforum.com/cs2/blogs/jfunk/archive/2008/12/18/sms-reports-software-install-review.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"Mai Ali | My blog:
    Technical | Twitter:
    Mai Ali

  • HT5492 I had disabled my restrictions and my apps are not showing again in the screen!

    Hi everyone!
    please help me with my probleme
    I had enabled my restrictions by accidant and some of my icons apps gone missing and if I wanted to open them I have to go to the app store, then I disabled my restrictions and they are still not showing on the home screen!
    please if anyone know how to make them appear again pleeaaase tell me!

    iPhone apps don't work on Macs and Mac apps don't run on iOS devices like an iPhone. If you sync an iPhone to a Mac, the apps from the iPhone are stored in the Mac's iTunes app's media library as a backup.
    The App Store app on a Mac is not the same as the App Store app on the iPhone. The Mac version is the Mac App Store, apps for Macs. The iPhone version is the iTunes App Store, apps for iOS devices.

  • The new track and mask features are not showing on my version of premiere cc. It says it's uptodate.

    The new track and mask features are not showing on my version of premiere cc. It says it's uptodate.

    Please double-check the exact version as displayed in the About box. The new release is an entirely separate version referred to CC 2014.0; it is not merely an update to CC7. That means that if you launch CC7.2.2 and go Help>Updates, it will report that the program is up to date.
    If you're on CC7.2.2, then the easiest way to install CC2014.0 is to launch the Creative Cloud app and scroll down the Apps tab looking for "Premiere Pro CC (2014)."
    Note that once CC2014 is installed, you will need to use a new app icon to launch it; the old icon will continue to launch CC7.

Maybe you are looking for