Report Parameters with a space between, not working

I have a problem with a report in SQL Server 2012 that uses cascading multi-valued parameters. I am using AdventureWorks2012DW as a sample, and all parameters work except for one with a space in this case its SalesTerritoryCountry and the parameter is 'North
America' which has a space. How do i get it to return data? here is my Stpre procedure for you to try.
Create Procedure dbo.uspReportParams
@Region varchar(15),
@Country varchar(60)
AS
BEGIN
SET NOCOUNT ON
Select st.SalesTerritoryGroup [Region], st.SalesTerritoryCountry [Country], r.BusinessType [Business Type], SUM(rs.SalesAmount) [Sales Amount]
from DimReseller r join FactResellerSales rs on r.ResellerKey = rs.ResellerKey
join DimDate d on rs.OrderDateKey = d.DateKey
join DimProduct p on p.ProductKey = rs.ProductKey
join DimSalesTerritory st on rs.SalesTerritoryKey = st.SalesTerritoryKey
where st.SalesTerritoryGroup IN (Select [splitdata] FROM dbo.fnSplitString (@Region,', '))
--AND st.SalesTerritoryGroup <> 'NA'
AND st.SalesTerritoryCountry IN (Select [splitdata] FROM dbo.fnSplitString (@Country,', '))
Group by st.SalesTerritoryGroup, st.SalesTerritoryCountry, r.BusinessType
END
IF i check it with other parameters it works except for North America
EXEC dbo.uspReportParams @Region = 'Europe,Pacific,North America', @Country = 'Germany,France,United Kingdom,Australia,Canada'

Thanxs for the reply i will explain more. The Issue is on parameter region which is 'North America', it should return data for United states and Canada.... the spaces for the SalesTerritoryCountry dont matter but for the SalesTerritoryGroup. 
I have made another discovery which has puzzled me more: If i place paramater 'North America' as the first value when executing the procedure, everything works well but if i place it elsewher ther is a problem here is a example to show what im saying
EXEC dbo.uspReportParams @Region = 'North America,Europe,Pacific', @Country = 'Germany,France,United Kingdom,Australia,Canada'
The results for Region 'North America' and Countries 'United States' + 'Canada' Show 
Its working as expected
You're using an AND condition in the filter so it will only return the countries which are included in @Country filter as it is the lower level
I guess may be what you want is this??
Create Procedure dbo.uspReportParams
@Region varchar(15),
@Country varchar(60)
AS
BEGIN
SET NOCOUNT ON
Select st.SalesTerritoryGroup [Region], st.SalesTerritoryCountry [Country], r.BusinessType [Business Type], SUM(rs.SalesAmount) [Sales Amount]
from DimReseller r join FactResellerSales rs on r.ResellerKey = rs.ResellerKey
join DimDate d on rs.OrderDateKey = d.DateKey
join DimProduct p on p.ProductKey = rs.ProductKey
join DimSalesTerritory st on rs.SalesTerritoryKey = st.SalesTerritoryKey
where (st.SalesTerritoryGroup IN (Select [splitdata] FROM dbo.fnSplitString (@Region,', '))
--AND st.SalesTerritoryGroup <> 'NA'
OR st.SalesTerritoryCountry IN (Select [splitdata] FROM dbo.fnSplitString (@Country,', ')))
Group by st.SalesTerritoryGroup, st.SalesTerritoryCountry, r.BusinessType
END
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • OBIEE 11G report download with excel 2000 is not working properly

    Hi all,
    The Analytics report download is not working properly in excel 2000.
    This version is no longer supported?
    Is any way to workaround this problem?
    Cheers
    Carlos Pereira

    Hi,
    which version r u using? until obiee11.1.1.5 its bug but solve it by workaround method . also the bug fixed in obiee.11.1.1.6
    11700314 REPORT NOT EXPORTED FULLY INTO EXCEL WHEN DOWNLOADING FROM PAGES OTHER THAN 1
    1) stop it all u r bi serivices then take a back of u original instanconfig.xml file then do the below changes
    D:\Oracle\Middleware\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1
    instanceconfig.xml
    just add below content then
    <Views>
    <Pivot>
    <MaxCells>6500000</MaxCells>
    <MaxVisibleColumns>100</MaxVisibleColumns>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>65000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>500</DefaultRowsDisplayed>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDownload>64000</DefaultRowsDisplayedInDownload>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DisableAutoPreview>false</DisableAutoPreview>
    </Pivot>
    <Table>
    <MaxCells>6500000</MaxCells>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>65000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>500</DefaultRowsDisplayed>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDownload>64000</DefaultRowsDisplayedInDownload>
    </Table>
    </Views>
    Restart all u r bi services..
    then test it out.
    Thanks
    Deva

  • Larger preview with the space bar not working

    Yosemite 10.10.1 on an iMac: you know how you can single click on a photo or file in Finder, then press the spacebar and a window opens with a larger view of the file without actually opening it?  I don't know what you call that (do tell me if you know), but it has stopped working like it used to in the last week. 
    I do get the window, but only a smaller thumbnail preview now, with a white border around it. These preview thumbnails are only about 1.5" by 2", and won't resize. Granted, it's bigger than the actual file icon, but not as big as it used to go when hitting the spacebar (nearly the height of the full screen).  I've attached an image showing Now and Before.
    The top image is only a cropped screen grab of less than a quarter of my screen. The bottom image is the full screen off my older Mac where this preview option still works.
    Notice, too, that even the thumbnail of the image, in the Finder window, is constricted and has that white border now.
    Did the key command change?  or is there a preference I've accidentally turned off?
    Thanks in advance for any help.

    that directory is not on my iMac, James.  I have ~/Library/QuickLook/iBooksAuthor.qlgenerator  or ~/Library/QuickLook/iWork.qlgenerator/
    under ~/Library/Caches I have
    Why would it suddenly stop working, Japib?  I didn't update recently...
    and these are just the usual files I've always looked at with QuickLook -- mostly photos. 
    thanks for your input.  Any other suggestions?  should I call Apple Support?

  • Pass parameters that contain spaces between web pages

    Hi,
    I have a .jsp . Inside it, I only need to call a link with a parameter.
    The problem is that the parameter contains spaces:
    name="ALARM LEVELS"
    If I write:
    <a href=modif_list.jsp?name=<%=paramName%>>See list</a></p>The parameter received in modif_list is "ALARM" and not "ALARM LEVELS"!!!
    How can I pass parameters that contain spaces between web pages?
    Thanks

    The think is that the parameter is a label and obviously I don't know the value before hand.
    In fact, I am using
    <a href=modif_list.jsp?table=<%=paramName%>&label=<%=label%>
    <%=tableName%></a></p>.....So I can't help it if the label contains spaces.
    Now if there is no solution, I suppose I can always replace the space by "_" and when I collect the parameter, I replace the "_" by a space!

  • Indesign opens files with no space between each word, this happened after a mac update, help?? I don't want to have to go through and manually do it.

    indesign opens files with no space between each word, this happened after a mac update, help?? I don't want to have to go through and manually do it.
    thanks in advance!

    If you are unable to enter the passcode into your device, you will have to restore the device to circumvent that passcode.
    Is the music purchased from iTunes? If it is you can contact iTunes support and ask them to allow you to re-download the music that you purchased from iTunes.
    Also, do you sync the device regularly? When syncing an iPod Touch/iPhone a backup file is made. That backup file doesn't contain your music but it does contain your address book, application data, pictures, notes, etc. After restoring your device, you can try restoring from the last backup that was made of your device so you will not have to start over completely from scratch.
    Hope this helps!

  • Space bar not working to move the document

    I am having issues with shift-constrain resizing not working, and option-drag duplication not working, also using the space bar to move the document around the viewport. OSX 10.10, InDesign CC. I reset the preferences, restarted which failed to solve the problem, anyone knows how to make it work? Thanks!

    Hi
    I'd just like to add, since updating a couple of Mac Pro clients, running Mavericks 10.9.2 and Photoshop CC with the latest 6.3.8-2 Wacom Driver, early signs are that users have noted an improvement in performance of Photoshop CC.
    Its quite early days yet, however shortcuts that had been slow to respond and we have had multiple app crashes in Photoshop CC when using multi-layed 16-Bit Tiffs, seem to be ironed out.
    Also we have had to use the whitewindow plugin for photoshop too.
    Sorry to crash in on an InDesign thread regarding Photoshop CC issues, however I have seen a lot of common ground for many folks issues with Adobe software being they are using a Wacom device of some sort.
    Would be good to know if others have noted any improvements with this driver?

  • "no serializer is registered..." error with a web service not working

    I'm using JDeveloper 10.1.3
    EJB 3.0
    I'm having issues with the web service not working after I create a client for it. The web service works fine up until I generate the proxy on the other side.
    ERROR An error occurred for port: {http://buslogic/}MyWebService1SoapHttpPort: no serializer is registered for (class buslogic.runtime.....
    I saved the file before I added the proxy and the wsdl looks the same between the working one and the non working one. I can not pin point the when the change to the web service is occuring. It seemed to work once all the way up until I had a ADF page trying to retrieve data, another time it failed when the proxy was created.
    I can get the version that I saved to work immediately after the version that does not fails.
    Any help would be greatly appreciated,
    Dan

    I'm using JDeveloper 10.1.3
    EJB 3.0
    I'm having issues with the web service not working after I create a client for it. The web service works fine up until I generate the proxy on the other side.
    ERROR An error occurred for port: {http://buslogic/}MyWebService1SoapHttpPort: no serializer is registered for (class buslogic.runtime.....
    I saved the file before I added the proxy and the wsdl looks the same between the working one and the non working one. I can not pin point the when the change to the web service is occuring. It seemed to work once all the way up until I had a ADF page trying to retrieve data, another time it failed when the proxy was created.
    I can get the version that I saved to work immediately after the version that does not fails.
    Any help would be greatly appreciated,
    Dan

  • How can i write with double spaces between words ?

    hello everyone,
    i need to write in pages with double spaces between words not between lines ..
    how can i do it and make it default ?
    for now, just write and click space bar twice ..!!!

    Do you really need to do this? It is so ugly and illegible.
    You can use a monospace font or use the auto-complete in Menu > Pages > Preferences to auto-substitute 2 spaces for each one.
    Peter

  • When I copy/paste a paragraph from a PDF doc, it pastes with no spaces between words. How can I fix this? I've searched everywhere for the solution but didn't find anyone had this issue.

    When I copy/paste a paragraph from a PDF doc (onto Facebook status bar, for example) it pastes with no spaces between words.  I.e: "The manhadajugofcoolwaterand offeredmeadrink." How can I fix this? I've searched everywhere for the solution but didn't find anyone had this issue. I'm new to Apple so any help will be much appreciated. Thanks!

    I can't speak about this occurring with FaceBook since I don't use FaceBook, but I see the same type of thing when I copy and pasted from websites. It doesn't always happen and I cannot find any particular set of circumstances under which it occurs or does not occur.
    I am merely responding to let you know that it happens to me as well and I have seen no way to correct it. I'm not so sure that there is a way to correct in in that it may have something to do with how the original text is formatted in the PDF or on the website and how it eventually "fits" into the text field or the area in which it is pasted.

  • I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but th

    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

    If you are searching the registry, check for the "Senforce" string. It should be at HKLM\Software\Senforce
    Try running the install program for the ZSC with the following command line:
    setup.exe /V"STUNINSTALL=1"
    If you've specified an uninstall password, try this one instead:
    setup.exe /V"STUNINSTALL=1 STUIP=password"" (please note the double quote at the end)
    Let me know if that helped you.
    Daniel
    >>>
    From: Andy_DeWees<[email protected] du>
    To:novell.support.zenworks.endpoint-security-management
    Date: 2/5/2009 12:52 PM
    Subject: I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but the login prompt did not appearfor ESM client or the icon was not in the systray. Everything seems towork, besides at times (a couple times today) it terminates his ethernetcard/connection. I would re-image his computer but he has severalapplications and
    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

  • My  iphone 3gs with version 4.0 not works for apple  TV should i need to download  any app or any other thng

    my  iphone 3gs with version 4.0 not works for apple  TV  what should  i do?

    Welcome to the Apple community.
    You should update your iPhone software.

  • My spaces is not working on my new mini. Button 4 is selected and works fine on my macbook pro. any ideas?

    My spaces is not working on my new mini. Button 4 is selected any ideas?
    Thanks

    Hi, Try reading this and see if it helps you out:
    http://support.apple.com/kb/TS1381

  • Connecting Wahoo Blue HR with iPhone 5 does not work, tried everything possible

    Connecting Wahoo Blue HR with iPhone 5 does not work, tried everything what I could find in the interenet as solution??????

    IPhone 4s, iOS 7.1.1: iphone can't connect to wahoo HR BT4.0 sensor :((( Wverything worked fine with iOS 6 !!!

  • Hyperlink with tracking applied does not work in PDF

    We use lots of web addresses in our advertising and generally the web addresses automatically convert to hyperlinks when we distill the files and make PDFs. Recently we've had two instances where someone applied tracking or justification to the line of text containing the url to make it spread across the page. When we make our PDF the url is not clickable. Is there anyway around this? We tried actually creating a hyperlink manually in InDesign by using the Hyperlinks panel and entering the address, but that didn't work either.

    Peter,
    We'll look into that. We already do two separate PDFs for print and web, but
    we are distilling both right now. Wouldn't be too much of a problem to
    change to exporting the web version I don't think.
    I did a test, just curious, is there a way to keep it from putting a black
    box around the link on the PDF?
    Thanks for your help! We appreciate it!
    Beth
    From: Peter Spier <[email protected]>
    Reply-To: <[email protected]>
    Date: Fri, 14 May 2010 13:24:04 -0600
    To: Beth Phillips <[email protected]>
    Subject: Hyperlink with tracking applied does not work in PDF
    Distilled PDF uses Postscript which does not support hyperlinks and
    interactivity. To make your hyperlinks in ID you'll need to export and check
    the Include Hyperlinks and Include Interactiviity boxes.
    Your printer doesn't need hyperlinks because they don't work on a printed
    page. The requirements for print and interactive PDF are quite different, and
    you may find you need to make two versions.
    >

  • XI ALERTS with out BPM Are not working.

    Hi All,
      We are on XI 3.0 sp14. Alerts with out BPM are not working. I want to apply notes 906044, 876546. It says i need to make some changes to the following functions. I could not able to find these Function modules in the first place. Can some one help me out?
    <b>Note -
    Object -
         Name</b>
    906044  -
    function---- SXMS_ALERT_ERROR_RECEIVE
    906044  -
    function --- SXMS_ALERT_ERROR_SEND
    906044&876546--method ---CL_XI_ALERT HAS_ACTIVE_RULE
    906044  -
    method -
      CL_XI_ALERT_UTIL GET_MDT_URL
    905896   -
    method  -
    CL_XI_ALERT CREATE_ALERT
    Thank you
    Ganges Leaves.

    Ganges
    Login into XI Developement and give SE37 Transaction. Then you give SXMS_ALERT_ERROR_RECEIVE and click 'display'.
    Then you check for the methods CL_XI_ALERT HAS_ACTIVE_RULE, CL_XI_ALERT_UTIL GET_MDT_URL, CL_XI_ALERT CREATE_ALERT and make the changes according to service notes. If you dont find this methods in this function then you can try in SXMS_ALERT_ERROR_SEND.
    Regards,
    ---Mohan

Maybe you are looking for

  • Is there an ETA for the availability of Volume Purchase Program in UK?

    The Volume Purchase Program in the US looks to be an incredibily useful service. http://www.apple.com/business/vpp/ Does anyone have any information about when/if this same service will be availabile to UK businesses? Many thanks

  • X-Serve RAID unmounts on large file copy

    Hi We are running an X-Serve RAID in a video production environment. The RAID is striped RAID 5 with 1 hot spare on either side and concatenated with Apple Disk Utility as RAID 0 on our G5, to appear as one logical volume. I have noticed, lately, tha

  • Snow Leopard contact sheet layout changes possible?

    Unable to change contact sheet layout to suit my needs. E.g. I want 6 photos per page in two columns. The default option for two columns seems to be 2 or 4 photos/page. Ask for six and it creates two pages. The layout within the contact sheet seems t

  • Sky+HD light on my Sky hub is continually blinking

    Sky+HD light on my Sky hub is continually blinking how do I fix this or what is the problem?

  • Updated MacBook Air or MBP with Retina Display?

    Hello guys. I am planning to buy a Macbook, but I don't know which model. Actually, I am thinking of buying the updated MacBook Air 13 inches, 256 GB Flash Storage etc, because it is really really slim and it has just updated , so it would be a purch