Removing # sign in the Report for Blank Value

Guys,
I was trying to use the below code VB, but i am getting error like Expected: End of statement.
I am new to VB, do anyone have step by step guide to implement the below macro for Excel and remove the # from BEx analyzer.
Do i need write this macro for each query? I totally dont understand the link.
Kindly guide to run the macro and avoid # in reporting.
Do I need to implement this macro on each end user client server ?
Removing '#' in Analyzer (Report)
In ODS, there are records having a value BLANK/EMPTY for some of the fields. EX: Field: `Creation Date' and there is no value for some of the records.
For the same, when I execute the query in Analyzer, the value `#' is displaying in place of `BLANK' value for DATE and other Characteristic fields. Here, I want to show it as `BLANK/SPACE' instead of `#'. How to do this?
I had a similar problem and our client didn't want to see # signs in the report. And this is what I did. I created a marco in Workbook as SAPBEXonRefresh and run my code in Visual Basic editor. You can run same code in query also as when you will refresh query this # sign will be taken care. You can see similar code in SAP market place.
I will still suggest not to take out # sign as this represent no value in DataMart. And this is SAP standard. I did convince my client for this and later they were OK with it.
The codes are below:
Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
If queryID = "SAPBEXq0001" Then
resultArea.Select
'Remove '#'
Selection.Cells.Replace What:="#", Replacement:="", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=True
'Remove 'Not assigned'
Selection.Cells.Replace What:="Not assigned", Replacement:="", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=True
End If
' Set focus back to top of results
resultArea(1, 1).Select
End Sub
Regards,
Anand
Edited by: araj123 on Oct 19, 2010 4:51 PM
Edited by: araj123 on Oct 19, 2010 4:58 PM

Anand,
This is what I have used in the past and works just fine
Sub HashRemoval()
    Application.ScreenUpdating = False
    Cells.Replace What:="#", Replacement:="", LookAt:=xlWhole, SearchOrder:= _
        xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
    Application.ScreenUpdating = True
End Sub
But I have this as a separate macro that can be called any time.
Cheers
Craig

Similar Messages

  • Need to run the report for All Values when Null is passed in parameter

    Hi All,
    In my BIP report, I am using a parameter :asset with Type as Text, which means user will type the values for the parameter in the text box.
    Now, this parameter can take multiple comma separated values. I have a requirement to run the report for All Values when user doesn't enter any value in the parameter text box and if user enters any value(s) then the report will run for those values . The way, I tried to handle that in the query using couple of ways was :
    IMP : My Database is SQL Server
    where
    (table.asset = isnull((:asset), table.asset) or table.asset in (:asset))
    Now this works fine when I give a single asset number but when I give multiple values separated by comma like 123, 345 in the text box, then the statement fails saying 'encountered ,'
    I also tried simply
    table.asset in isnull((:asset),table.asset) -- but this doesn't work as it doesn't allow me to use in operater while using isnull and if i will use = operater then it won't work in case of multiple values
    Any suggestions on how can I handle this? Any help would be highly appreciated.
    Thanks,
    Ronny

    thanks for replying, but i tried this option too, it did not work for me, neither isnull nor coalesce. I mean, the solution work for single value but when i pass multiple values then separated by a comma then it doesn't work and shows me an error like "Incorrect Syntax ','". I am using SQL server as DB and bip is 10.1.3.4.1
    also please share the SR number, so i can also check the same.
    can there be any other work around to this?
    thanks,
    ronny

  • How to remove asterix symbol which appears in report for empty values?

    Hi Experts,
    I have designed a querry wherein I am getting all the values correctly. But, for certain cells - I am getting the asterix symbol which the user does not wants.
    Now, how to remove the asterix symbol which appears in report for empty values?
    Thanking you in advance,
    Waiting for your reply,
    With Kind Regards,
    Shreeem.

    check if following thread helps you;
    # in report when null in the cube
    Regards,
    Gaurav

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • ABST2 - How to take the report for the previous fiscal year

    Hi,
    For FI-AA reconciliation, my scenario is this: The current fiscal year is 2009 and the system (server) date is 16-Apr-2009. My fiscal year period is: Mar-Apr. In ABST2, it does not accept Fiscal year. When I take the report, it displays for fiscal year 2009, which I don't want because I want it for the fiscal year 2008 to reconcile between FI and AA. The fiscal year 2008 is not yet closed in both FI and AA, so I want the report for 2008 only. But ABST2 always gives the report for the current fiscl year. Is there any way out to get the report for 2008?.
    Thanks,
    Kannan S

    This report is based on the actual values. In the past this report was used for EURO conversions to see if the values are in line. When not it was not possible to do the euro conversion.
    Normal it is a part from the fiscal year closing

  • Running-report-for-all-values

    Hi ,
    Based on this link i have implemented this logic....
    http://bischool.wordpress.com/2009/08/26/avoid-running-report-for-all-values-on-dashboard-when-using-multi-select-prompt/
    But for the intermediate report its taking more time to run...nearly 4min...is there any way to reduce it.
    Thanks

    hi User,
    Quick question
    Why you are giving (-1) value's as per the doc we can give any value which has to give no results? Have u tried to give some other value ?
    Next,Do u have left outer joins between those tables? If yes you should face the same problem with the main report because the filters to be same as intermediate report am i right ?
    First tune-up the rpd and get the main report query ,run-it over DB
    Due to huge data and the join taking more time....is there way any thing to add to reduce the time??Huge data ?? Intermediate report will not get any results i think it will not take more time to give a message,but due to join conditions only it is taking long time to run
    Note :Before getting value from DB it will check the where condition( joins)
    Thanks,
    Saichand Varanasi

  • What is the alternative for DisplayMemberPath="Value" for Windows Store applications?

    I think there is a bug with Windows Store Applications when it comes to using DisplayMemberPath="Value".
    Here is my code
    <ComboBox Height="40" VerticalAlignment="Stretch" SelectedValuePath="Key" DisplayMemberPath="Value" x:Name="comboBox1" FontSize="25"/>
    var source = new Dictionary<string, double>();
    source.Add("Item1", 0.4);
    source.Add("Item2", 0.3);
    source.Add("Item3", 0.1);
    source.Add("Item4", 0.1);
    var formateDSource = new Dictionary<string, string>();
    foreach (var item in source)
    formateDSource.Add(string.Format("[{0}, {1}]", item.Key, item.Value), item.Key);
    comboBox1.ItemsSource = source;
    If you use this code in WPF in works perfectly. However if you use this code in a Windows Store Application then the Combo Box is empty and an error is thrown. So is there an alternative way to do this in Windows Store Applications and have I unearthed a
    bug? Because I have researched the Web for days and found no solution to this.*please do not comment unless you have tried my code as a Windows Store App not a WPF in Visual Studios. Can Someone post an example based on my code that works in Windows Store
    Apps please because this is terrible.
    Thanks

    It looks like you got an answer on SO:
    http://stackoverflow.com/questions/29817124/what-is-the-alternative-for-displaymemberpath-value-for-windows-store-applicat
    This does look like a bug.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • When I turn on my Macbook Pro and sign in, the screen is blank, none of the icons appear, I can't click, open or do anything! Help!

    When I turn on my Macbook Pro and sign in, the screen is blank, none of the icons appear, I can't click, open or do anything! Help!

    You could try this; Mac OS X: Starting up in Safe Mode.It takes awhile to come up so patience is a virtue here.
    And here is What is Safe Mode.
    DALE

  • Send back the report for revision in BPF

    Hi all,
    I have a scenario to create BPF
    1.I have one report and user 1 make changes to that report and submit to BPC
    2.i have a manager who have two options either to send back the report for revision or to approve it.
    How can i proceed wit the second step?
    Thanks in advance
    Regards,
    Anila
    Edited by: Anila Mohan on Apr 6, 2009 1:02 PM
    Edited by: Anila Mohan on Apr 6, 2009 1:05 PM

    Hi Anila,
    You define work status according to scenario and use BPC-Excel: E-submit- Cahnge work status Settings to modify your data work status.
    Try this option it will work.
    Regards
    Naveen.KV

  • Is there a way in Captivate to set the reporting for a quiz so it saves/keeps the highest score

    Is there a way in Captivate to set the reporting for a quiz so it saves/keeps the highest score despite how many attempts a user takes?

    There is currently no built-in functionality to do this in Captivate. 
    If you are using an LMS, this sort of thing is normally handled there.   For example in Moodle there is an option to use the highest score out of all attempts on a course.

  • [svn:osmf:] 14235: PARB changes: Remove targetBufferTime from the metrics provider, this value can' t be set in the absence of an understanding of the buffering strategy which is layered on top of NetStreamBufferTrait .

    Revision: 14235
    Revision: 14235
    Author:   [email protected]
    Date:     2010-02-17 19:27:33 -0800 (Wed, 17 Feb 2010)
    Log Message:
    PARB changes: Remove targetBufferTime from the metrics provider, this value can't be set in the absence of an understanding of the buffering strategy which is layered on top of NetStreamBufferTrait.  Adjust switching rules to work from the raw buffer data instead of this target.  Remove all bufferTime modifications from the MBR code, so that they won't impact any buffering strategies (addresses FM-436).
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-436
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamMetricsBase.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamSwitchManager.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/InsufficientBufferRule.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/RTMPNetStreamMetrics.as
        osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/SufficientBandwidthRule.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockNetStreamMetricsBase.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockRTMPNetStreamMetrics.as

    Please do not duplicate posts. You have already started a thread on this subject.

  • Can Cisco Mars do the reporting for all devices (checkpint, ISS etc)

    Is this is true that cisco mars can do the reporting for all the devices(like checkpoint, juniper, sonicwall, and IBM-ISS ) devices.
    Requesting plz reply ASAP

    no, it's not true. the following MARS lists what mars has direct support for:
    http://www.cisco.com/en/US/docs/security/security_management/cs-mars/4.3/compatibility/local_controller/dtlc43x.html
    Anything else would require creating a custom parser, which is great functionality to have in a pinch but is a major pita to maintain. That's one of the biggest reasons to buy a SIM in the first place, so you don't have to manage parsing yourself.

  • Lead time values are not appearing in the report for current year.

    Hi friends,
    Iam checking a report in production.  where lead time values are displayed as 0 for 1 key figure lead time3 (w/0 dim) . i found there is a formula for this it shows like NODIM ( 'Lead Time 3' ).and there is a value for cal.lead time
    how can i get values in the report.
    Thanks ,
    VRV.

    Hi,
    Although your question is not clear, I understood that the formula built on that KF is NODIM. Basically it means, units of measurement is not considered when calculating.
    Eg: 5 Minutes + 5 Kilograms = 10
    You please try to analyze your KF by the above logic. Then you would be able to figure out why the data is not appearing in the report..
    Assign if helps...
    Regards,
    Suman

  • Don't have to run the report for no prompt value

    Hi,
    The requirement is that I need to create a report which is more of a search report kind of thing. So on the dashboard we need to show only prompts. The users would choose any prompt and run the report.....now the issue is....that when no prompt values is selected and user hit the GO button ..i need to show a message saying "Please select any value" ...how to do that ..
    I have already refered kishore's blog on guided navigation to implement this ..but the issue which I am facing is that my intermediate report is taking too much time (almost 10 mins) to come back with values and then my actual report shows the message thorugh No results view ...but i need to load the messsage to the dashboard in not more that 1 mins ...how to do that .....
    any help would be much appreciated ....
    Thanks
    Ronny

    Thanks Kishore, but I have already refered your blog and implemented this approach as I have mentioned above, however, the issue is that my intermediate report in which I am using the dummy filter is taking too much time to run ...like 10 mins...so guided navigation doesn't work properly ....I have almost 15 prompts so it is taking time ..is there any other work around ?
    Thanks,
    Ronny

  • BI and ECC Reconciliation report giving blank value instead of ZERO

    Hi,
      We have a report for reconciliation where in if the ECC and BI balance  matches, it will show Zero (0) in the final field. My question is *for some of them it is showing Zero(0) and for few rows it is givng blank values* even after ECC and BI balance matching...Why is it giving blank instead of showing 0 (ZERO)  ....is there any setting  we need to make??
    point to be noted is only few rows are getting blank and few rows it is showing '0'
    pls suggest...
    Thanks

    Without additional details of the rows that have blanks vs zeros, here is a guess...
    The rows with blank final value have no records in ECC or BI. You can probably define the formula in such a way that it always gives zero for all rows.

Maybe you are looking for

  • CDs from my MAC won't open on other computers

    CDs from my MAC won't open on other computers

  • Cannot Add Funds PayPal Credit Card

    Sony. Is a absolute joke. This issue has been going on for FOUR YEARS for some users. And now. Last month. I brought like 3 games. Then.  All of a sudden. Cannot add funds using PayPal. Says credit card invalid. Ah. Yeah right. i have used paypal all

  • PC build and Disk Setup for a Pro-Wannabe

    Hi All, I know everyone asks these questions and I thought I will not but, when you spend more than $3000 it feels their is no "Harm" in asking the question (but hopefully their will be Harm somewhere in the comments). So, after waiting for the Mac P

  • Male to female cable

    Does a "Male connector" to "female connector" cabe exist? I need to connect my iPod to the top connector of the iPod HiFi in a remote manner. My bookshelf does not have the height to fit the iPod ON TOP of the iPod HiFi...

  • Translation Date

    Hi, Currently translation date for foreign currency is taken as posting date.  We need to change the same to Document Date.  We have tried the substitution rule with user exit, but unfortunately could not get thru. Can anyone suggest the solution for