NaN and Export Issue in Excel

Hi
I have an Issue that I need to calculate value on below condition 
((ReportItems!txtPayaClick.Value/ReportItems!txtPayExpLH.Value)-1)*100.
But Above give me errorthat is showing  "NaN" as an Result.
Then I used;=IIF(ReportItems!txtPayExpLH.Value=0,0,((ReportItems!txtPayaClick.Value/ReportItems!txtPayExpLH.Value)-1)*100)
This Time when I Export the report in excel Format It gives me same error (NaN) .
Kindly help me .
Thanks

Hello,
The issue is due to the IIF function always evaluates both the true part and the false part, even though it returns only one of them. This means both the true part and the false part need to be evaluated.
In order to resolve the issue, please refer to the following expression:
=IIF(ReportItems!txtPayExpLH.Value=0,0,
((ReportItems!txtPayaClick.Value/IIF(ReportItems!txtPayExpLH.Value=0,1, ReportItems!txtPayExpLH.Value))-1)*100)
Alternatively, we can use following custom code to work around the issue:
Public Function Divider (ByVal Dividend As Double, ByVal Divisor As Double)
If IsNothing(Divisor) Or Divisor = 0
Return 0
Else
Return Dividend/Divisor
End If
End Function
Then, use following expression:
=Code.Divider(ReportItems!txtPayaClick.Value, ReportItems!txtPayExpLH.Value)
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support

Similar Messages

  • Error message using SQL import and Export Wizard with Excel spread sheet

    I am trying to import an Excel spreadsheet using the Import export wizard that is provided with SQL 2014.  
    Everything seems to set up OK but then when I go to do the transfer "error message" comes up saying:
    External Table is not in the expected format.(Microsoft Jet Database Engine).   
    This is a spreadsheet and there is no database, that is why I want to import it into a database!!  So the reference to JET is a tad disappointing.
    So why the error and how do I fix the problem?
    As there are over 100 variables in the spread sheet rows, it would be great to have this automatically create the database and populate the fields.
    I am using SQL 2014  Express and Office Excel 2013.
    Thank you in  advance for taking the time to read this, and hopefully sheading some light on the issue.

    Hi AWlcurrent,
    When import a .xlsx file to SQL Server using SQL Server Import and Export Wizard, you see a “External Table is not in the expected format.(Microsoft Jet Database Engine).” error message. This error message seems that the Microsoft JET Database Engine is
    unable to handle something that is contained in the file.
    So please make sure there is no unsupported content in the Excel file. Alternatively, we can use ‘Microsoft Excel’ as the Data Source, then Select ‘Microsoft Excel 2007’ as the Excel version to import the excel file.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Crystal Reports 9.2.0.448 Formatting and exporting issues on CSV file

    Hello,
    when starting export to csv, excel or text - out of the crystal reports preview - content gets lost, i.e. crystal cuts parts of the csv text.
    If I try exporting to word or pdf the whole content is being exported.
    Can anybody tell me how to fix that problem?
    Is this a known issue? Does there probably already exist a hotfix? I couldn't find any.
    Would be great, if someone helped me!
    Monika

    Hi Monika,
    No more fixes done to CR 9 since it's so old. Go to this link and download any patches you can find for CR 9:
    http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
    If that doesn't work try increasing the field width or using the Can Grow option. If that doesn't work then try downloading a trial version of CR XI R2 or Cr 2008 and test again. I suggest you try this on a PC other than your main PC just in case. We support side by side installs but you never know what it may do depending on what else you have installed.
    Thank you
    Don

  • How to i write a script that makes multiple selections in a pdf and exports them to excel?

    I have a large number of PDFs
    Not all the PDFs contain information we need. We want to be able to automate a script that extracts certain info from the PDFs and opens them in a certain format in excel.
    Acrobat allows me to make a single selection and export as excel.
    How do i export multiple parts to excel from the pdfs and ensure that the resulting excel is in a format that i can use without much fixing needed (e.g. merged cells)?

    This type of process can't really be done using JavaScript. You would need to read the contents of the file, word by word, decide (based on some logic) what data to extract, and then collect it and at the end export to a plain-text file. Not a simple process...

  • I'm using LR 4.4.  How do I extract the metadata from my images and export it into Excel?

    I want to extract the metadata I have added to my images and export it into an Excel spreadsheet.  Can this be done within LR4.4?  If the software doesn't have a function for this is there another way to do it?
    Thanks for any help you can offer.

    JB's ListView is the most straight-forward solution, but
    ConfidentialInformant
    allows for full customization (e.g. if you want to pick and choose custom metadata fields, or export more fields than ListView supports (10), or tweak data formats, or add intelligence...).
    Rob

  • LCM Import and Export Issue

    Hi
    I am trying to migrate a HPS application. But while exporting it i am getting the below eroors in LCM log file.
    Application artifact listing metadata contains duplicate resource information for /Objects/Application Model.
    Empty Zip input stream. Data not available to save.
    error /Objects/Application Model - Artifact Exporter: Failed to export artifact.com.hyperion.pmd.hps.lcm.artifactExporter.LCMArtifactExportException: Failed to get export Objects.
    I tried doing it through Utility.sh after saving the migration definition but getting the same error.
    Any Suggestions on this.
    Thank You
    Regards
    Sandeep Kumar Upadhyay

    Hi Kyle
    In my case .. i am trying to export Scorecard app .. and scorecard has got only two artifacts.. i had tried exporting them individually too.. but same error.. what i am confused with is .. it is not giving any issues to me on my DEV env.. I do not know if there is some issue related to env setup... As of now.. i do not have any ideas on how to troubleshoot this.. Any ideas on this are welcomed.
    Thank you
    Regards
    Sandeep Kumar Upadhyay

  • FCP playback and exporting issue

    Hi, I'm having an issue in FCP where as I'm playing it, all of a sudden a picture will go really wierd - i.e. the colours will be bright blue and pink, and the picture showing will not actually be the correct image, but one from somewhere else in the timeline.
    If I just hide and re-show the subtitles that are above the image, the picture is back to normal.
    I thought it would just be a problem in FCP, but it also occurred when I exported using best quality in compressor.
    This issue only started occurring when I started making some changes to the subtitles (there are a lot in the film) - but I don't see how that could affect it.
    I also thought maybe it could be to do with the fact that I have 6 video tracks (made up of subtitles, captions, etc.)?
    If anyone knows anything about why FCP is doing this, and how to stop it, I would greatly appreciate your help.
    Thanks
    Jomee

    sound like corrupted render files ... try fully deleting your render cache using Tools > Render Manager, then re-render and export

  • Saving and exporting issue, in AI trial. Error messages. PS is fine.

    I just installed the trial version of AI and PS today. 
    Illustrator: I can open files and work on them just fine. I cannot export or save. I receive, "The file could not be written due to an error." when exporting, and, "An uknown error has occurred." when I try to save.
    PS exports and saves just fine.
    PC specs are well w/in recommendations.
    Please help.  I plan to purchase the SW next week, but not if I can't get it to work!
    Thanks in advance.

    Pearce Tech,
    You may try the following (you may have tried/done some of them already) and see whether it helps (the following is a general list of things you may try when the issue is not in a specific file; 3) and 4) are specifically aimed at possibly corrupt preferences):
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • PLS-00753: malformed or corrupted wrapped unit; Import and Export issues

    I'm new to oracle, please help me with below...
    After a full import as follows:
    imp username/password FILE=dump_file.dmp log=logFile.log ignore=y full=y &
    I face two issues and they are:
    1. I find that a partitioned table is missing. Verifying with the other team(who did the export), i found that they gave a full export. Hence shouldn't all objects of the user be exported?
    What could be the reason for it?
    2. Also there is package which is wrapped, and compiling it gives me this error-
    PLS-00753: malformed or corrupted wrapped unit
    How do i find the reason behind and rectify the same?
    M using Oracle 10g.
    Thanks in advance....
    Edited by: Shruthi PR on Aug 31, 2012 12:08 AM

    You can do one more thing if they're not willing to give you export logs/responding slowly.
    You can use the option show=y which will show the structure of the objects in the data dump. But remember this will take time; If your dump is very huge, you have to think twice before using this option.
    If you don't have metalink access, see the snap here
    +*<Moderator edit - deleted contents of MOS Doc - pl do NOT post contents of MOS Docs - this is a violation of your Support agreement>*+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Insert an image in header and export to PDF/Excel WAD

    Hi experts!
    I'm trying to create a Web template for one of my queries with the WAD.
    I've added a table at the top, containing a logo and One custom text. Below that table, I've added a CONTAINER_LAYOUT_ITEM, and in this element, I've added different item, like BUTTON_GROUP_ITEM, INFO_FIELD_ITEM, NAVIGATION_PANE_ITEM and ANALISYS_ITEM, related with one query.
    One of the buttons I've created one with the action EXPORT but in the Data Binding secction, only the items (BUTTON_GROUP_ITEM, INFO_FIELD_ITEM, NAVIGATION_PANE_ITEM and ANALISYS_ITEM) are shown. So I can't select the table I've created for the export.
    I've tried to put the table in one CONTAINER_ITEM, and the select it in the export command, but it doesn't work.
    Does anybody any idea about how to inlcude the logo and the Title in the PDF or Excel export??
    Thanks in advance for your help
    Best regards,

    When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.
    I'm confused, you are returning a GIF, not a PDF in the code below, but you are telling the client you are returning a JPEG.
    Graphics2D.drawImage
    ImageIO.read

  • How to run SQL and export results to Excel

    My task is to run a custom SQL script and create Excel file via running SQL Developer from command line (invoked by a scheduled script). Is this possible using SQL Developer?
    The thing I'm trying first is to run a user-defined report in SQL Developer and save the results to an Excel file. Only 16000 result rows, but took 10 minutes to do the export and still cannot finish. Is there another way to do it?
    Many thanks.

    Thanks K for the update.
    I have done csv files before using pl/sql, no problem at all. It's just that in current work environment, we're using a 3rd party tool to make the Excels and I was asked to study the feasibility of using SQL Developer instead of our current commercial tool to do the job.

  • Final Cut Pro X sharing and exporting issues?

    Hey!
    Okay so I made a Wedding video for my cousins wedding a couple of days ago. I want to share it to Facebook. I do everything correctly then it says " Preparing media for share.... " and it's loading. Then it just stops doing that and goes back to normal like I never shared it to Facebook. I checked my facebook and nothing was there. It's a 12 minute long video, so then I try YouTube. Same thing. The password and emails went through for both of them, and I also tried the lowest quality. Still the same thing! So now i'm looking for the export to just save it as a quicktime movie. I can't find it! I watched tutorials but it says I have to export from the share button above. It's not there, it's only there under file and only has the options for facebook, vimeo, youtube, apple devices etc etc.
    Can someone please help me? Thank you

    Watch Macbreak Studio Episode 194 and or Episode 203 where they show how to setup sharing presets.

  • DESFORMAT=spreadsheet and formatting issues in excel

    Hi all,
    Using reports builder 10 I have created a report layout for use with spreadsheets but am having trouble with a couple columns. In the data model the columns are just a straight select, they are varchar2 in the table.
    The columns themselves contain entries like 00000001234 where the values differ, but are always padded with zeros to be 11 chars long. This is not a numeric column although it only contains numbers. in the properties of the report they are shown as varchar2 but when I run the report or generate it to .xls and open it, the column always appears without the padded zeros like excel thinks it is a number.
    Is there a way to get around this?
    Edited by: a small rabbit on Feb 24, 2009 9:54 AM

    That just makes || :din_gp_pin|| be displayed in the column of the report instead of the actual value.
    EDIT: changed the line to VARIABLE :=  ' '||:din_gp_pin||' ' ; and the value shows up in the spreadsheet, but it still cuts off the leading zeros. so instead of 00001234567 I get 1234567
    Edited by: a small rabbit on Apr 1, 2009 8:32 AM

  • Creating an 3D array and exporting it to excel

    I'm trying to create a spreadsheet file that will have three columns of data. So far, I've been only successful in getting two columns. I tried to look for examples but I could only find examples that had single-floating point numbers, not strings.
    I've been sucessful in writing strings to an Excel worksheet, now I just need to find a way to take every other data point in the second column and give it it's own column.
    To aid in solving the problem, I've attached the excel file that the VI wrote to as well as the VI itself.
    Attachments:
    temp ‏1 KB
    DAC_and_53131_Analysis3.vi ‏92 KB

    UPDATE: I have found another problem with my code. Seems like that the frequency string I'm writing is sorted by a column while the 1/2 voltage increments are in a row. I'm trying to fix it so that the frequencies would be in a row of their own. Any input would be greatly appreciated.
    Attached is a sample output file of the problem.
    Attachments:
    Frequency_Problem.txt ‏1 KB

  • PTWC 2.2 and Export Datagrid to Excel

    I have a portlet with an Image Button control that will export a Datagrid to Excel. Using the PT Web controls 2.2 I get a JavaScript Error (Object is Null or Nothing). It works fine outside of the portal. My current work-around is to use an IFrame. Has anyone else encountered this?
    Paul

    Have a look at this.
    http://www.cristalab.com/tips/exportar-datos-de-flex-a-excel-c70300l/

Maybe you are looking for

  • Using SSL with client auth from a JNLP-launched app

    We have an application that is launched by JNLP, and which needs to make a mutually authenticated SSL connection to a server. The client cert and trusted certs that it needs to do this are stored in the Sun\Java\Deployment\security directory where JN

  • Differences between XtremeGamer and XtremeGamer Fatal1ty PRO Seri

    I was looking at those two XFi cards and I would like to know if there's another difference appart from the X-RAM and the external connector.

  • Business One meterial

    Hai Friends                   I want to learn Business One..please provide me Prerequazation  to install the BO, installation steps and meterial.   Thanks and regards

  • Missing Contact Info

    I've had my iPod touch for a few days now. Everything has seemed to sync perfectly. My bookmarks, calendars, and photos are all there. But there's a majority of my contacts who are missing their info. Even my own card is missing info from it. Can any

  • Hiding Subforms and adding new subforms

    Hi, I am in the process of creating a form and would like to have a selection on tick boxes which if the user ticks them will then open the relevant pages/subforms so would like advice on the easiest way to do that. Then I would like the users to be