Logical Formula Help
I have two tables set up. Table 1 has Name, Email address, phone number, and a checkbox all in different columns. Table 2 only has Name, Email and Phone. I want to set it up so that if I check the box in table 1, it places the Name from table 1 in the "Name" category on table 2. So far I have this formula set up in the Name column of table 2:
=IF ('YES/NO' NAME=TRUE, "Table 1 :: A2", "-")
And this works great... however the text that it puts in the name category of table 2 reads "Table 1 :: A2". In other words, I can't get it to copy the actual text that's in that cell into table two. Any ideas?
populationone wrote:
=IF ('YES/NO' NAME=TRUE, "Table 1 :: A2", "-")
And this works great...
As edited by Badunit, your formula will give the results shown in Table 2 below.
The formula used in Table 2::A2 is the one above, edited to fit the location of the checkbox and Name columns on Table 1.
=IF(Table 1::$A, Table 1 :: B, "-")
Fill right to column C, and down to the last row of Table 2.
You might prefer the results shown in Table 2-1, to the right of Table 2.
This requires an extra column (D, which may be hidden) on the main table, containing a formula which assigns a serial number to each row where the checkbox is checked, and the empty string to each unchecked row:
=IF(A,MAX($E$1:E1)+1,"")
Table 2-1 contains a single formula treating Table 1 as a Lookup table. It searches column D for the numbers generated by the previous formula, and returns the appropriate values from each row where a number is found.
=IF((ROW()-2)<MAX(Table 1::$E),LOOKUP(ROW()-1,Table 1 :: $E,Table 1 :: B),"")
Fill right to column C, and down to the last row of Table 2-1.
Regards,
Barry
Similar Messages
-
How does logical volume helps in performance in AIX..Should have posted IBM
We are setting up a new DB server and the disks are in RAID5 config,Does putting data and index in different logical volumes helps in performance
(I hope I'm not falling for April Fools joke here...)
Hi Maran,
As someone already answered, if both volumes are striped against all available disks, you can put everything in one volume and expect equal or better performance.
However, I want to warn you from optimizing the disk structure without knowing that your database will really bottleneck on disk access to index and data blocks. My storage manager and I wasted countless hours with such optimizations before realizing that we are wasting our time because the application code contains so many functions that disk IO is not even close to being an issue.
-- Chen -
I purchased A book on iBooks and accidentally paused it while downloading. Now I cannot continue it's downloading. I get a message saying I have already purchased the book and to go to Purchased page to download it. Trouble is, every time I do that, tapping the "Download" button, the same message reappears. EVERY TIME. Circular logic. Help!
Okay, you need to contact support definitely about what's going on. Here is a form that will send an e-mail into support for you:
http://www.apple.com/emea/support/itunes/contact.html
As far as the prices, the difference is likely the laptop version is the SD version and the iPad one is available in HD. That's the only reason you'll see a price difference. It has nothing to do with the device with movies/movie rentals. Apps yes, these no. -
Formula Help Crystal Reports 11
Hello,
I am having trouble with a selection formula. I wrote a report that queries 2 tables that have been joined within my report. A primary table and a secondary table. The secondary table can contain multiple detail records that are associated with each primary record.
There is a field in each record of the secondary table that contains an alpha character. I need a slection formula to scan through the fields of the secondary records and if one of those secondary records has a particular value (In this case "T") I would like ALL of the secondary records included in my report along with the primary record indexed to it. If no secondary record in the series has a value of "T" then all records should be excluded from the report including the primary record indexed to that series of secondary records.
Is there a function I can use to accomplish this type of logic?...an example of the appropriate syntax would be helpful.
Your help is much appreciated!
MarkHi Mark,
Use the InStr function. This will allow you to search for a string and it will return a numeric value which represents the placement.
Instr ({Table.FIELD}, "T") > 0;
This will return all records that have a "T" in that field.
Good luck,
Brian
Edited by: Brian Dong on Oct 23, 2008 4:39 PM -
Hi All
My problem is mainly relating to the usage of operators and functions in the OBIEE repository...
I need to extract the file name from a given path... (this is basically for Usage Tracking purposes)
The path can be of 4 types:
1) /users/[email protected]/Charts Reports/Report\/test.) -- file Report\/test.
2) /shared/project/Reports \/ Charts/test \/ Report -- file test \/ Report
3) /shared/project/Reports \/ Charts/test Report -- file test Report
4) /shared/project/Reports/Report 1 -- file Report 1
The '\/' that you see happens, when you save a report/folder in Answers with a '/' in the name (it converts it to '\/' supposedly).
I am not able to write a formula for a logical column that can extract the file name given these 4 types of input paths.
I have a written a SQl query that does all this perfectly fine but am having a tough time converting this to the OBIEE formula. So I guess
I'll have to start off separately on the rpd formula.
I tried the following formula but it does not work for type 1) and 2) ... It works for types 3 and 4. Though I dont find anything wrong with
this formula, I think the CASE operator might be a problem.
CASE WHEN LOCATE ('\/',:PATH) > 0
THEN CASE WHEN LOCATE ( '\/',SUBSTRING(:PATH FROM LOCATE ('/', SUBSTRING (:PATH FROM 1 FOR LOCATE ('\/',:PATH,-1) ) ,-1 ) + 1 ) ) > 0
THEN SUBSTRING (:PATH FROM LOCATE ( '/',:PATH,-1)+1 )
ELSE SUBSTRING(:PATH FROM LOCATE ('/', SUBSTRING (:PATH FROM 1 FOR LOCATE ('\/',:PATH,-1) ) ,-1 ) + 1 )
END
ELSE
SUBSTRING(:PATH FROM LOCATE ( '/',:PATH,-1) +1 )
END
Can someone help me write a better formula to perform this function
Thanks a lotHi All
If this helps... When I said it does not work for the input types 1 and 2 (above post), this is the result that I get in Answers when I use my formula...
Input 1) /users/[email protected]/Charts Reports/Report\/test.) Result: test.) Expected Result: Report\/test.)
Input 2) /shared/project/Reports \/ Charts/test \/ Report Result: Report Expected Result: test \/ Report
Thanks a lot... -
Hello everyone,
Iam trying to define a fast formula that would generate the customer number.
Here goes my code.
/* NAME: EMP_NUMBER_GENERATION */
/* Returns the Next Employee Number. */
DEFAULT FOR Person_number IS ' '
DEFAULT FOR Party_ID IS 0
DEFAULT FOR Person_ID IS 0
DEFAULT FOR National_ID IS ' '
DEFAULT FOR Date_Of_Birth IS '1900/01/01 00:00:00' (date)
DEFAULT FOR Hire_Date IS '1900/01/01 00:00:00' (date)
INPUTS ARE
Legislation_Code (text),
Person_Type (text),
Person_number (text),
Party_id,
Person_id,
Date_of_birth (date),
Hire_date (date),
National_ID (text)
Next_number = '0'
Invalid_msg = ' '
/* Next test is to insure we are processing an EMPLOYEE and */
/* not an Applicant or Contingent Worker */
IF person_type = 'EMP' then
Next_Number = Get_Custom_Number(Legislation_Code
,Person_Type
,Person_Number
,Party_ID
,Person_ID
,National_ID
,Date_Of_Birth
,effective_date)
ELSE
Invalid_msg = 'This is not an person_type of Employee!'
hr_utility.set_location('post election edit rule l_result = ' || l_result , 98765);
RETURN Next_number
When i try to verify the code it throws an error saying "The formula contains some unexpected text which cannot be verified.
Could anyone please help me as to where iam i going wrong.Or is the syntax itself is wrong.if so please provide me the corrected syntax.
Thanks,
SrikanthDear Srikanth,
We are implementing HRMS and we are opting for custom Employee Number. I saw this messsage thread and was trying to find the EMP_NUMBER_GENERATION formulas, but was unable to find the formula.
Can you explain to me how to open this formula for incorporating my Custom logic for employee number Generation?
Can you guide me?
Regards
Sachin Shirke. -
How to write code for this logic, plz help me very urgent
Hi All,
i am new to sap-abap, i got this work and i m working on this can any body help me in writing code, plz help me, this is very very urgent.
here i m giving my logic, can anybody send me the code related to this logic.
this is very urgent .
this program o/p should be in ALV format and need to create one commond 'SAVE" on this o/t list if user clicks save processedon and processedby fields in ZFIBUE should be updated automatically.
i am creating one custom table zfibue having fields: (serialno, bukrs, matnr,prdha,hkont,gsber,wrbtr,budat, credate, cretime,processed, processedon, processedby,mapped)
fields of zfibue:
serailno = numc
bukrs = char
matnr = char
prdha = char
hkont = char
gsber = char
wrbtr = char
budat = date
credate = date
cretime = time
processed= char
processedon = date
processedby = char
mapped = char are belongs to above type data types
and seelct-optionfields: s_bukrs for bseg-bukrs
s_hkont for bseg-hkont,
s_budat for bkpf-budat,
s_processed for zfibue-processed,
s_processedon for zfibue-processedon,
s_mapped. for zfibue-mapped
parameters: p_chk1 as checkbox,
p_chk2 as checkbox.
p_filepath type rlgrap-filename.
1.1 Validate the user inputs (S_BUKRS and S_HKONT) against respective check tables (T001 and SKB1). If the validation fails, provide respective error message. Eg: Invalid input for Company Code.
1.2 Fetch SERIALNO, BUKRS, MATNR, PRDHA, HKONT, GSBER, WRBTR, BUDAT, CREDATE, CRETIME, PROCESSED, PROCESSEDON, PROCESSEDBY, MAPPED from table ZFIBUE into internal table GT_ZFIBUE where BUKRS IN S_BUKRS, HKONT IN S_HKONT, BUDAT IN S_BUDAT, PROCESSED IN S_PROCESSED, PROCESSEDON IN S_PROCESSEDON, and MAPPED IN S_MAPPED.
1.3 If P_CHK2 = X, go to step 1.11. Else continue.
1.4 If P_CHK1 = X, continue. Else go to step 1.9
1.5 Fetch MATNR, PRDHA from MARA into GT_MARA for all entries in GT_ZFIBUE where MATNR = GT_ZFIBUE-MATNR.
1.6 Sort and delete adjacent duplicates from GT_MARA based on MATNR.
1.7 Loop through GT_ZFIBUE where PRDHA = blank.
Read Table GT_MARA based on MATNR = GT_ZFIBUE-MATNR.
IF sy-subrc = 0.
Move GT_MARA-PRDHA to GT_ZFIBUE-PRDHA.
Modify Table GT_ZFIBUE. Update Product Hierarchy
Endif.
Fetch PRDHA, GSBER from ZFIBU into GT_ZFIBU for all entries in GT_ZFIBUE where PRDHA = GT_ZFIBUE-PRDHA.
Read Table GT_ZFIBU based on PRDHA = GT_ZFIBUE-PRDHA.
IF sy-subrc = 0.
Move GT_ZFIBU-GSBER to GT_ZFIBUE-GSBER.
Move X to GT_ZFIBUE-MAPPED.
Modify Table GT_ZFIBUE.
Endif.
Endloop.
1.8 Modify database table ZFIBUE from GT_ZFIBUE.
1.9 Fill the field catalog table GT_FIELDCAT using the details of output fields listed in section Inputs/Outputs (above).
Eg: LWA_ FIELDCAT -SELTEXT_L = 'Serial Number.
LWA_ FIELDCAT -DATATYPE = NUMC.
LWA_ FIELDCAT -OUTPUTLEN = 9.
LWA_ FIELDCAT -TABNAME = 'GT_ZFIBUE'.
LWA_ FIELDCAT-FIELDNAME = 'SERIALNO'.
Append LWA_FIELDCAT to GT_FIELDCAT
Note: a) The output field GT_ZFIBUE-PROCESSED will be editable marking INPUT = X in field catalog (GT_FIELDCAT).
b) The standard ALV functionality will be used to give the user option for selecting all or blocks of entries at a time.
c) The PF-STATUS STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN will be copied to the program and modified to include a SAVE button.
1.10 Call the function module REUSE_ALV_GRID_DISPLAY passing output table GT_ZFIBUE and field catalog GT_FIELDCAT. Additional parameters like I_CALLBACK_PF_STATUS_SET (= ZFIBUESTAT) and I_CALLBACK_USER_COMMAND (=HANDLE_USER_ACTION) will also be passed to handle user events. Go to 2.14.
1.11 Download the file to P_FILEPATH using function module GUI_DOWNLOAD passing GT_ZFIBUE.
1.12 Exit Program.
Logic to be implemented in routine Handle_User_Action
This routine will have the following interface:
FORM Handle_User_Action USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
ENDFORM.
Following logic will be implemented in this routine:
1. If r_ucomm = SAVE, continue. Else exit.
2. Loop through GT_ZFIBUE where SEL_ROW = X. Row is selected
a. IF GT_ZFIBUE-PROCESSED = X.
i. GT_ZFIBUE-PROCESSEDON = SY-DATUM.
ii. GT_ZFIBUE-PROCESSEDBY = SY-UNAME.
iii. MODIFY ZFIBUE FROM work area GT_ZFIBUE.
Endif.
Endloop.Hi Swathi,
If it's very very urgent then you better get on with it, don't waste time on the web. Chop chop. -
Logical Formula at query level?
I have requirment like if D = 0 then ' ' (SAPCE) else E / F.
I dont know how to get space ?
please help me to create this formula at query level?hi Hari,
I am not really sure ,but u can try this...
if D = 0 then ' ' (SPACE) else E / F.
use the same formula and make it Zero instead of space and then in the Query properties replace Zero with Blank or Space Values.
Rgds
SVU123
Edited by: svu123 on Sep 30, 2010 6:53 AM -
Help!
I've written an application that isn't working exactly like I think it should. The program is supposed to compare two files. If there is a string in file one that is not in file two, then it is supposed to write that string to a third file. To help clarify, the first file is a final list of students that are taking the class. The second file is a list of students that attended for that session (they will be registering electronically). Therefore, I need the program to exam the two lists and tell me who was absent. At the moment, it will work for the first absent person (ie. it writes the student information to the third file so I know they are absent) but it seems to just stop working after that. I'm sure there is a problem with the logic...but I can't figure out where. Below is the code that i'm using. I'd appreciate any assistance!
Thanks!
John
public void actionTaken(){
try {
//File with final registration list
classList = new BufferedReader(new FileReader("classList.txt"));
//File that has recorded attendance
studentInput = new BufferedReader(new FileReader("studentInput.txt"));
// String written to this file if they were absent.
absent = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("Absent.txt", true)));
// First while loop examines every line that is in the classList.txt file. Should advance to the next line after the nested while loop executes.
while ((cLT = classList.readLine()) != null){
// Nested while loop examines every line in the studentInput.txt
while ((sIT = studentInput.readLine()) != null){
//If statement checks to see if a student has logged in.
if (cLT.equals(sIT)){
countTemp++; //countTemp is tripped if the student has logged in.
studentInput.close(); //Closes file after the entire file has been examined.
//If statement checks the countTemp to see if the student registered.
if (countTemp == 0){ //Writes to the absent file if this line is true.
absent.newLine();
absent.write(cLT);
absent.close();
countTemp = 0; //reinitialized to test next student name.
classList.close(); //Closes file after the entire file has been examined.
} catch (IOException x) {You close the student attendance file (studentInput) after you read the first student name from the class list!!!
Unless the files are going to get really big, I wouldn't do it this way. I'd create a Map of students who attended. Then I'd go through the names list and see if the names are present in the map. That way you could re-use the map for every student name.
If you don't want to do it that way, you're going to have to make assumptions about the ordering of the two name lists, and whether one is necessarily a subset of the other. -
Soundtrack Pro making a LOT of files - used to working in Logic, need help
So I'm used to working with Logic Studio/7.2/etc, and it's my first foray into working with Soundtrack Pro at work. My questions are this: When I use the razorblade tool (since I can't find an equivalent to the split tool in logic) in soundtrack to cut up a sequence, it seems to be creating a LOT of extra files:
http://www.1217design.com/pics/stp_question.png is an example of what I mean. Is this supposed to happen? The recorded files themselves were done in FCP and sent to Soundtrack Pro via the Send to STP Multitrack session function.
What I'm trying to find out is: Is this supposed to be happening? How can I stop this from happening? Are all of these extra files necessary in order to export the final project? And what will happen if I delete them?
I just want to know because the folder is now 4.71gb for a 30 second audio file (the final aif export is roughly 30mb), and there's over 200 of these extra files that have been created in the process of working on this project.
If this is what is necessary to work in Final Cut then I won't be able to work with FCP due to size issues (which is a shame as I feel so much more comfortable working within that environment than I do working in FCP).
Thanks for the help in advance,
SeanSean A wrote:
By doing this, will it still create all of those extra files? That's what I'm trying to figure out. Is it just from the blade tool being used?
For all edits, yeah, baby, STP will generate more files than cows create methane.
First, I know what works for me, but I'm still learning, so I strongly encourage you to keep a COMPLETE BACKUP of all projects until you know your workflow. Also, you may have Preferences set up differently than I do, so you may not find the same paths as what I describe here.
When you have an audio file the way you want it, and you're confident that you won't need those edit files again (be SURE) Process > Flatten All Actions (or Audible Actions) and Save that audio file. Then -- as I understand it so far -- you can safely trash all the edits related to that file. (If you use Photoshop or similar visual programs, it's the same idea.)
During my first few weeks of intensive STP work, my drive grew more and more sluggish, for no reasons known to me. I saw disk space shrinking rapidly. Finally I figured it had to have something to do with STP, so I started searching and eventually I found my edits piling up in home/Documents/Soundtrack Pro Documents, especially (for me) in Edited Media. Since they all came from projects I'd finished and exported to AAC and MP3, I was comfortable trashing them all. Suddenly, whoa, I had an extra 12 GB of disk space available.
Just keep those edit files until you are CERTAIN that you know what you're doing and that you're DONE. Otherwise, when some project needs one precious little 3MB turn of a phrase, you may find yourself confronting suicidal or homicidal tendencies.
I welcome further clarification and/or correction from people who know more and can explain it better.
Best,
chuck -
India localization oracle fast formulas help
hi ..
anybody help on oracle india localization fast formulas, absence mgmt setup, online payslip setup and tax declaration set up in payroll and sshr basic setups for absence mangt and transfer setup. plz send me on [email protected]send me a contract, buy me a ticket, and i fly over.
-
Logic Enironment HELP!!! External Midi NOT SYNCING UP with Ensoniq ASR-X.
I need help setting up an environment for my Ensoniq ASR-X. As it Stands, I have been able to get my Axium 49 to trigger sounds in the ASR-x and I have also been able to get Logic to start the ASR's sequencer but for some reason I get latency and a phase effect from the ASR.
All I want to do is toggle between making the ASR-X a slave so I can record tracks that are made on the machine into logic or make Logic the SLAVE so I can press the play button on the ASR and record my audio and midi at the same time into Logic 8.
If that's too much, Then please just help me to get my machine into an environment that will work inside logic.
Thanx!
P.S.
Amy advice on how to set up the midi routing between my Axium 49, M-Audio Fast Track Pro USB interface and ASR-X to work together more smoothly would be much appreciated.Hi. Thanks for taking the time to reply. I did try that and it didn't solve the problem.
What I did last night was to trash all my Logic Express files and the Logic pro install files as per the advice on the Logic Pro Troubleshooting Basics page. Then I reinstalled and updated Logic Pro.
That seemed to fix the problem. It may have been that having a 7.1.1 version of Logic Express and a 7.2 version of Logic Pro on the same machine was causing a confusion over preferences (if that makes sense; I'm not a computer expert). At any rate, I have my insert slots back now and I'm happy.
Thanks again for taking the time to respond.
iMac G5 1.8 gHz Mac OS X (10.4.8) 80g hard drive, Matshita DVD-R UJ-825, 1 GB RAM -
Post Author: scd07
CA Forum: Formula
Hi, Crystal Reports novice here...
I have been asked to take out any lines in several reports with all "0s" in the columns. I have tried formatting each field to suppress Zeros and then right click on the Description column and click "suppress if blank". Didn't work. I then tried to write a conditional formula that I put under the description field (field 1), "common", "formula" and "suppress". The formula followed the following:
If = 0 and = 0 and = 0 then true else false
Unfortunately this also didn't work. I don't know if my formula is incorrect or if I am entering it in the wrong spot. Any help would be very much appreciated! Thank you!!Post Author: Bandit07
CA Forum: Formula
Right click on what you want to suppress and click the x-2 button next to suppress. Put your formula in there.
= 0 and = 0 and = 0, If all of these conditions are true then it will suppress.
B -
The formula below works just fine but I want to use a UDA driven member in Member Range and need help.
IIF(
Count(
Intersect(
{MemberRange( [Jan],[Apr] )},
{[Time].CurrentMember}
) = 1, [Actual], [Forecast])
I tried with
IIF(
Count(
Intersect(
{MemberRange( [Jan],UDA([Period],"CurrMonth") )},
{[Time].CurrentMember}
) = 1, [Actual], [Forecast])
but I get an error Error(1260052) - Syntax error in input MDX query on line 4 at token ')' CalcMbr
not sure why is this not working - I think UDA() can result in a set but member range is expecting a member only??
Please suggest any ideas to correct the code.also tried with {[Jan]:UDA([Period],"CurrMonth")}
instead of {MemberRange( [Jan],UDA([Period],"CurrMonth") )} - but no luck
Any suggestions? -
Post Author: dmface15
CA Forum: Crystal Reports
I have a report that identifies employees and what taxes that employee pays. For example,
John Doe
OASDI $2500
Medicare $625
Jane Doe
Medicare $1750
Michael Smith
OASDI $1630
Medicare $783
The report is grouped by Employee name and tax code. The reason for grouping by tax code is because the tabale i am using to get tax code has records for each pay check the employee has received. Here is the problem. I need to create a report that will give me all employees who pay Medicare AND OASDI, all employees who pay ONLY Medicare. Therefore, when I run the report for employees who pay Medicare AND OASDI I should only see Michael Smith and John Doe. If i run the report for all employees who pay ONLY Medicare I should see only Jane Doe. Right now, I am having trouble with creating a formula whether it by group selection or record selection. Can anyone help me out? I would appreciate it. Thanks.Post Author: kcheeb
CA Forum: Crystal Reports
Have you tried suppressing the group and detail sections based on the report type and count of tax code records? Assuming There are no people with only OASDI tax codes.
The other option would be to use sql to return you only Medicare people or OASDI & Medicare people.
Maybe you are looking for
-
Can not view music listed on ipod in itunes
I use to be able to view what music I had on my Ipod Touch in itunes now that does not seem to be the case. I ipod says i have about 200 songs but when i connect to itunes an click music under devices or under ipod itself no music is shown. Is ther
-
Bug in 10.2.0.3.0 - sum gives wrong result?
Hi, I've found a strange behavior when using sum without group by. Firs I thought it's hash group by, but it's supposed to be fixed in 10.2.0.3, and setting GBYHASH_AGGREGATION_ENABLED=FALSE also didn't fix the error. We have automated tests to verif
-
Sir, Suppose if an entry is passed with the transaction code # FB1S(Cleasr GL Account ) or FB1D(Clear Customer ) without business Area and Vendor Code and now that entry needs to be reversed So can u please suggest how can we reverse the entry with
-
Sending email after creating the notification automatically
Dear Experts, The requirement is that when the notification is created and saved, at that moment email should be triggered automatically to specific mail ids. And after closing the notification again email should be triggered. Kindly help in this reg
-
Hello I am creating a message based trigger to trigger my process with webservice operation. While creating the trigger, the EndPoint Name field is uneditable. So I cannot edit the host name and port. When I deploy the process I am getting an excepti