Store a formula result

Hello to all,
I have a question regarding a value problem.
I've tried to find in the forums but did not succeed.
My report has
a 1st page that show the data by columns, minimum 1 maximum 9
a 2nd page that contains a chart
a 3rd page that contains a chart.
I have one formula that is counting the number of columns of the 1st page.
I would like to print the 2nd page if counter<=4 and the 3rd page if counter>4.
The value of the formula is <>0 in the page footer of the first page, but the value=0 when the report is starting the 2nd/3rd page.
How can I store the formula value in order to use it in a suppress formula ?
Thank you
Chris.

Hi,
1. Create a formula with below content and place it in page footer section.
2. Use it for your suppression logic:
global numberVar recordNum;
if pageNumber = 1 then
recordNum := recordNumber;
recordNum
Hope it helps.
Thanks,
Raghavendra

Similar Messages

  • ITunes, App Store and Bing results in Spotlight Search?

    Hi there
    iOS 8 was supposed to bring new levels of richness to Spotlight search results on iOS, including iTunes, App Store and Bing results (amongst others?). But none of my iOS 8 devices are showing me these results in Spotlight searches. I'm looking at an iPad Mini with Retina Display, iPhone 5, iPhone 6 and an iPad Air here, none of which are showing results any different to iOS 7.
    What gives here? Are these features limited to certain geographic locations? I'm in Denmark, for what it's worth.

    Hi drdaz,
    Welcome to the Apple Support Communities!
    Please refer to the attached weblink for information on the changes to Spotlight search in iOS 8. 
    Apple - iOS 8 - Spotlight
    Have a great day,
    Joe

  • How to remove the 0 that is added to the formula result

    Hi,
           I have a formula field. i placed the formula field in the group footer. zero (0) is added to the formula result. if the formula result is 8 then i am getting 0.00 and 8 as data when i select the browse field data of that field . how to remove the zero. i also used supress formula for the field. but it is not working. any idea on this regard.
    Regards,
    Shanthakumar.

    hi,
      Formula : GRP1Focus
                  if ({@Grp1BrandName}={@All Brand Names})  then {@FocusValue NBSH}. when i right click the formula field and select browse data. 0.00 and 8 are displaying.
    Suppress formula
             GRP1Focus=0
    Regards,
    Shanthakumar

  • Getting running total formula result at the beginning of the report

    Hello All,
    I am having an inquiry that if I can get a grand total in the report footer to the report header.
    The grand total is not a direct sum.  I am using three formulas
    the first formula:
    @reset Group Header
    whileprintingrecords;
    numbervar sumpct4;
    if not inrepeatedgroupheader then
    sumpct4 := 0;
    the second formula: Details section
    whileprintingrecords;
    numbervar sumpct4 := sumpct4 + {@Total_Market};   // {@Total_Market}; =  Amount+ Interest
    numbervar grtotal4 := grtotal4 + {@Total_Market};
    Group Footer
    whileprintingrecords;
    numbervar sumpct4;
    Report Footer
    whileprintingrecords;
    numbervar grtotal4;
    All that I need is to show the total which is in the report footer at the top of the page where I am having a summary.
    So, can you please help me.
    Thanks
    Edited by: maas maas on Sep 8, 2010 12:48 PM

    Hello my friend,
    I want this to be controlled in crystal.
    Is there is a way to get the grand total by using multiple formulas or any other way?
    Here is the structure of my report:
    Group Header 1: CCY
    Group Header 2:Type
    @reset Group Header
    whileprintingrecords;
    numbervar sumpct4;
    if not inrepeatedgroupheader then
    sumpct4 := 0;
    Group Header 3A: Deal No
    Group Header 3B: Deal No (subreport to get the {@amount} for each deal)
    I will pass the end_date from the main report to subreport and I will get the sum(amount) for each deal between date (1-1-2008) to end_date. The sum will be as a shared variable to the {@amount} formual in the main report.
    Details:
    Deal No, {@amount}, {@Price}, {@market}, {@Total_Market}
    {@Price}: if {table.price} = 0 then
    100
    else {table.price}
    {@market}: if Type <> "DEP" then
    ({@amount}*{@Price})/100
    else
    {@amount}
    {@Total_Market}:{@market}+ {@Price}
    Running formula to get Total_market: Details section
    whileprintingrecords;
    numbervar sumpct4 := sumpct4 + {@Total_Market};
    numbervar grtotal4 := grtotal4 + {@Total_Market};
    Group Footer 3B: Deal No
    Group Footer 3A: Deal No
    Group Footer 2:Type
    In this group I am placing a running total formula:
    whileprintingrecords;
    numbervar sumpct4;
    Group Footer 1: CCY
    Report Footer:
    @grand_Total
    whileprintingrecords;
    numbervar grtotal4;
    Now, i want this @grand_total formula result to be shown in Group Header 1: CCY.
    I tried to insert a subreport at the beginning which it is a copy of the main report, but I did not get the coorec t result because I am getting the {@amount} from a subreport and in crystal I can't insert a subreport in an existing subreport.

  • Store SQL query results in db table

    Hi,
    I have a SQL query that produces a report table.
    Is it possible to automatically store the query results (or the report table) as a db table - without interrupting the current report building proces?
    Thanks,
    Dave
    Message was edited by:
    Dave Judge

    Hi Dave,
    You can also insert records into an existing table:
    INSERT INTO TABLEB (colA, colB, colC, etc) SELECT valA, valB, valC, etc FROM VIEWA WHERE etc etc
    This can be done during a page process that runs "Before Header" and you can base your report on the TABLEB. Obviously, you will need to maintain that table to ensure that it is only truncated where necessary, that one user doesn't try to access another user's data on that table and that each time your page is loaded it doesn't try to repopulate the table when you don't need it to.
    Another possiblity is to use a collection - which is user session based
    Andy

  • Total result  & formula result  is wrong in query out put

    Hi BW gurus
    I have issue with total result and formula result
    my requirement
    Formula for hours is ( total time / Counter / 60)
    hours  column displaying
       14.2
         2.4
         3.4
    Total -
    5.6   not  20    then I setp calculate results to SUM  now total displying 20  perfect.
    Then I am using hours colum for calculation   here is my issue
    Qty rec per hour formula is = received / Hour
    Hours   Qty rec per hour          received
    14.2              100                            14200
    2..4               100                              2400
    3.4                100                              3400
    20                 300                              20000        result column for qty rec per hour is wrong . formula is not working on result for qty rec per hour
    Actually qty rec per hour result should be 20000/20  = 1000
    How to resolve this issue
    Thanks
    Rohan

    Hi BW Gurus,
    Thanks for your help .
    Let me explain my issue with examples :
    My report is by document date level ( Not at Po or PO line Level)
    I have a 3 Key figures
    1.  Hour -  is poulation at  PO Line level
    Ex :  4500001    1             5.30
                             2            5.30
                             3            5.30
    Then I am using counter to get single for time
    Hour/ Count  now my value is 5.30 in the report . hour column is perfect
    2. Po Qty  is fine
    3.  Qty Recd per hour ( Calculation)    PO QTy / Hour
    Now the issue is  each row caluculating perfect . but result row is not correct  Qty Received per hour . We don"t wont  sum of  Qty received per hour in result . We want  Caluclation result in the result
    Here is the issue
    If I have multiple POs for same document date  , each row is fine but system using division at Hour result also by COunter . because of thati am getting wrong hours in result for hour . this wrong result is using for Poqty receved per hour result  also .
    I put total for hour coulum result is perfect but for clauclation it is talking total hours/ total conter result .How to replace result caluculating by counter .This is our major issue .
    Appriciate your response
    Thanks
    Rohan

  • Formulas results outside of row and column axis

    The report has an area of row axis and column axis. This area is where the results from BW are displayed.
    We have a requirement where we would have to create formulas using the BW Analyzer results of the row axis and column axis and display the results after the last row of this area.
    For example, after the BW Analyzer displays the result area to the Excel, we are required to take Excel Cell D10 * C7 and put the results to B33.
    <b>B33 = D10*C11</b>
    Excel row 30 is the last row from the row axis result area.
    I have searched through the forum for Cell Editor, but it seems that the requirement is to use 2 structures and use Cell Editor only when there is a formula collision. Our requirement has 1 structure, but I guess we can create the other structure for the column axis results. But still I think Cell Editor is a computation of formula collision within the row and column axis result area.
    My question is will Cell Editor meet our requirement if we want to get formula results from the row and column axis and then display the results outside of the row and column axis result area?
    Our approach was to use the Excel cell formulas in the workbook or possibly macros, but it seems that the Excel formulas will do.
    Would someone clarify about the Cell editor for this requirement and how would you approach this?
    Would this be effective to do the formulas from the query level? We are working on 3.5 SP11.

    Can Cell editor do the following:
    1. Create structures
    2. Run the query
    3. The results of the structures are displayed in the row and column axis of the BEx Analyzer
    4. Save as a workbook
    5. Use the Cell Editor to pick and choose the cells (Not the Excel cells) to create formulas
    6. The formula results are then displayed outside of the row and column axis.
    Would this be another approach?
    What scenario can Cell editor be used? What scenario can Cell editor not be used?
    Thanks

  • Fast fromula related to oracle payroll are not called from Formula result window

    Hi,
    Few of the fast fromula related to oracle payroll are not called from Formula result window , please let me know how these fast formulas are called.
    Example : PAY_GB_EDI_MOVDED6_FOOTER
    Thanks,
    Subbu.

    Hi Subbu,
    Some reports are handled by the PYUGEN engine as Magnetic reports.
    These are old fashion reports to generate Magnetic files, like BACS EDI files etc..
    select * from ff_formulas_f
    where formula_name like 'PAY_GB_EDI_MOVDED6%';
    If you see the above, there are 3 formulas defined for generating this report - Header, Body & Footer.
    All are called in a sequence by the PYUGEN process based on what you seed in pay_magnetic_blocks.
    All the logic is within these Fast formulas.
    But as they're seeded there's nothing much you can do.
    Cheers,
    Vignesh

  • How to inlcude all records in a report, with a formula result of 0 or 0?

    I'm reporting on classes scheduled for a certain location, and calculating the number of available seats per class. A formula will give me the net seats available (Max seats-count of students). BUT if there are no students enrolled, class does not appear on the report. Formula is {SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs)
    What am I missing? Currently using Crystal 8.5 and reporting against a SQL database.
    Appreciate your help.
    christi

A: How to inlcude all records in a report, with a formula result of 0 or >0?

thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then".  (@Open is the formula title)

thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then".  (@Open is the formula title)

  • How to display my FOX formula result on the layout

    Hi Guru's,
    I have created one Fox Formula for OTB using the given below calculation
    Planned Open-To-Buy (Retail Price) = Sales / Retail Value +  Last Planned Stock (Retail Value) - Open Purchase Orders (Retail Value with Tax) - GR Posting Date / Vendor RtlT + Promotion Sales / Retail .
    When I am executing my Planning function (using BPS0) then it is working fine. It is showing the correct OTB value.
    I have insterted this FOX function into my layout using UPSPM tcode. When I execute the OTB calc function from UPSPM then correct data gets saved into my real-time cube. However OTB data is not getting displayed on my layout.
    Is there something else which I am supposed to do to display the result on the final layout ?
    Thanks,
    Ashu gupta.

    Hii Guys,
    Thanks a lot for your inputs. My issue has been resolved. I was not able to get the FOX formula output on the layout as the formula was not giving unique record. I have removed version char from my level and flds for selection. Now everything is working fine.
    Thanka again for your valuable time.

  • '*' in Query Formula Result

    Hi SDN,
    I am having a trouble with the result of a formula in query designer.  The result is showing up as '*', and I'm trying to figure out why.  I am using BW3.5.  The financial report is based on 0PCA_C01.  I have 0PROFIT_CTR hierarchy in my rows, and a structure in the columns.  The structure contains selections and formulas.
    Here is the definition of the formula which is causing the problem.
    F1 = NDIV0 (X %A Y).  Signs are defined as reversed in the properties, everything else is set to default.
    This formula is returning 0% or '*'.
    X = NDIM ( Z ) and Y = NDIM ( S ).  Z and S are selections on the profit center, and fiscal periods.  X and Y are returning values... therefore F1 should return a value instead of '*'.
    When running RSRT and executing the query, F1 returns a result.  I have tried generating the report and deleting the query cache using RSRT and I still get the same result.
    Does anyone have any ideas?  Thanks!

    Hi
    Use NODIM data function for F1 , If you have multiple units then in the result it will normally show as *
    Use this data function for the required field.
    Regards
    M.A

  • Formula Result not showing proper result

    Hi friends,
    We have a scenario where if the total is <= 7 then then result *1 and if result >0 then result 0.
    Below is the actual scenario if closed with in <= 7 then result  is (closed with in 7 <= 7)*1 or else 0.  For calculating closed with in <= 7 we used selection and then included this selection in formula. but we don't have any closed with in 7 <= 0 even the result is showing 1. but in the selection its showing 0. please help me out

    Hi Suman,
    Thank you for the reply, yes this is the way im expecting the output. In the screenshot that I have attached  Closed with in 7 days(RKF) is a selection. Using this selection I created a  Closed with in 7 days(formula). The RKF is giving the correct result individually, but wrong result as 1 in Formula.  I request you to please let me know the correct formula that can be included.

  • Saving formula results in structures

    Hi,
    i built a structure to input values of a "profit and loss"-statement. The turnover, for example, is shown as a sum of three accounts:
    account        description
    10000          Turnover 1
    11000          Turnover 2
    12000          Turnover 3
    13000          Total Turnover (formula: account 10000 + account  11000 + account 12000)
    If i open the planning-query it is possible to input values for the first three accounts and the sum in the "Total"-account is calculated.
    After saving these values i tried to get just the value of the "Total"-account (13000), but got no result.
    ? is it possible to save the result of a formula in a cube ?
    Best regards,
    Bernhard Cerny

    Bernhard,
    You have to have something to save the value against in the cube - i.e. with your example of a formula in a structure the system would not understand which account to save the data against.
    I suppose the question is, why do you need a total? If just for reporting then you can achieve via a structure, formula or a hierarchy at runtime. Alternatively you can utilise excel's native functionality to present the calculations in a workbook and utilise 7.0's new cell referencing capabilities (=bexgetdata)
    If you need the calculated value for some other purpose - e.g. you need to reference the value in a FOX formula to calculate a different value or you need to report the sum into another cube for aggregated calculations (e.g. BS / CF etc.) then you can do this by, for example, using the filters or summing within the FOX.
    However, if you must have the total in the cube then create an account in the database to reflect the total, put it an input query and then either use a hierarchy with the new postable nodes functionality or a fox formula to calculate or use =bexsetdata to reference the cell you wish to save into the database
    =BExSetData(cell where value is, "DATA_PROVIDER_X", column names, row names).
    Hope this helps,
    Keith

  • ITunes Store = inaccurate search results?

    A couple of our listeners have found that our podcast - which has been featured in and carried by the iTunes store for over two years - is no longer showing up in search results.
    As an experiment I just fired up iTunes, went to the iTunes store and searched for 'This Reality Podcast'.
    I was very surprised to see a bunch of podcasts returned in the search, *none of which* had a matched result or met the search criteria. And our own show isn't featured.
    Can someone tell me what on earth is going on here?
    Thanks.

    Clearly, if you then click on "show all" next to podcasts, yours shows up on the results, so it's not necessarily excluded, it's just that you're not in the top hits. Search engine optimization is always tricky as the criteria are not always published (for fear of people gaming it).
    It could be that those others are simply clicked on more frequently when people use similar search terms (popularity is a common criterion). Could be that you're moved down the result set because of the explicit rating. I just don't know.
    But I agree that there's something weird about the searching, that there should be some priority given for words in titles, or for the proximity of the words to each other (esp consecutively). Or it would be good if they supported the quoting of a search phrase, to get exact hits.
    Hopefully someone else can give you better insights into the iTunes Store search engine's logic.
    As an aside, I found it amusing, though, that when I searched for "reality" alone, you were higher up in the result set of podcasts than when I searched for "this reality podcast". It's very strange that a further qualification of a search got me further from my intended destination. Definitely indicative of some loose logic in the search tool.

  • How to store molecular formula in MM (eg:H2O)

    How to store/tie molecular formula in MM (eg:H2O)

    You can't just display data from a text file in a JTable. You have you understand the structure of the data so that you can parse the data and create a table model that can access the data in a row/column format. Here is an example of a simple program that does this:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=315172

  • Maybe you are looking for

    • Rental movie continues to download when iTunes is opened on desktop

      Hi, I rented a HD movie on iTunes using my desktop PC.  When the movie finished downloading to my desktop I plugged in my iPhone to the desktop and began to transfer the movie to my iPhone (I have done this several times in the past without issue). 

    • Small Issue 10.5.8 Update

      Two days ago installed the update 10.5.8 and all seemed to be very good. BUT, now every time I start my iMac 24", Aluminum Intel Core Duo, 2.6GHz my screen defaults to FULL Bright.... I reset the slider bar in System Pref's> Display back to the dimme

    • Sales Order price

      Hi Gurus,    y client wants to give all cheque details like no, amount  etc at a time of sales order creation, because they will deal only in advance payment. They also want to restrict delivery or sales order itself if cheque payment is not equal to

    • Prime Infrastructure 2.0 Software IOS deployment problems

      When I try to deploy an IOS using the software deployment in Cisco PI 2.0 the jobs always fail. I have tried many different configurations and even switched flash cards but nothing works. The TFTP/SCP jobs always fail. Doing a "show flash:" I can see

    • SCORM 1.2 and Saba - Reporting a 0 Score for Track Slide views

      Good morning, We have just transitioned over to our new LMS, Saba.  To say the transition has been rocky would be an understatement.   So, here is what I am dealing with: I have a very basic reader course where I want to grant someone credit once the