I am a creating a report using OBIEE 11g and need to figure out the line break. For example, I have the following variables: Account Name, Address, City, State etc...I want to be able to have all these variables in one column but on different lines.
For e.g:
Account Name
Address
City
State
The following code works with Business Object but not OBIEE 11g. I need to recreate the same thing in Obiee 11g.
=[Account Name]+Char(10)+[Account Address 1]+Char(10) +[Account City]+", " +[Account State]+" "+ [Account Postal Code] +Char(10)+[Region]+Char(10)+Char(10)+Char(10)+[Current Site Status]+" - "+[Number of Enrollments (per CTMS)]+Char(10)
Thanks in advance for your help
Ok, you "variables" are "columns". "variables" are variables in a programmatic sense.
If you want columns vertically aligned on top of each other, then you can simply put them in to the "columns" section of a pivot table view for your analysis.
Related
I have a Transaction's saved search, in which I have used Account fields three times with custom label. please see attached screenshot.
but when pulling data for this saved search using suite script 2.0, netsuite returns first account field as 'account', second as 'account_1' and third as 'account_2', please see attached screenshot of json output
So I am not able to determine which account is 'Account Two' and which one is 'Account Three' (based on my screenshot), and this is causing my mapping screen failure.
Can anyone please help me regarding this.
Thanks in advance.
Is your saved search filtering (criteria) for Main Line?
As per your screenshot, here is which one is which saved search column
Account is first occurance - (with no label)
Account_1 is the 2nd occurance of the same field (with Label Account Three)
Account_2 is the 3rd occurance of the same field (with Label Account Two)
I've been stuck on this problem for a couple of days now.
The structure of the data I'm working with is that each quote has a web stage and each client can have multiple quotes. I need to establish which quote(s) for each client has the highest web stage (web stage is a numerical field from 1-6) and remove from the data the quotes that aren't at the max stage(two or more quotes could be at the same web stage).
I need to do it this way because there is some information held at the quote level that I need to show at the client level and if I let all the data in then my number of clients gets inflated.
Universe or query level solutions would be greatly appreciated.
The data structure and results I'm hoping to get look like this:
Data Structure & Results
Many thanks in advance for any help.
Tom
Couple of ways to do it, either in the universe, via a subquery in the report, or report variables. Here's the report variable method:
Create a new report variable named [IsMax], with this definition:
=If [Web Stage] = Max([Web Stage]) In ([Client ID]) Then 1 Else 0
Add a filter to the report, where [IsMax] is 1.
I am currently experimenting with Microsoft Access and was curious how one would accomplish this.
I know that one can add a prefix to an autonumber in the format option such as "EMP"000, and each autonumber would fill as EMP001, EMP002, and so on.
What I would like to do is have the "EMP" change dynamically so if my personnel table has them as a Manager for example, it would be listed as MGR003, MGR004, etc.
My thought was to have something like the following in the format section but again am still new to indepth access so please excuse my crude write up.
"SELECT FROM [PersonnelTable].[PersonnelAbbreviation] if [Add Task].[AddTaskPersonnelType]==[PersonnelTable].[PersonnelType];"000
So to recap, I have two tables one "Add Task" the other "Personnel". Would like prefix on Add Task AutoNumber to be based off the abbreviation I have in table Personnel.
Thank you Stack Overflow users!
Simply use a query (air code)
SELECT anydesiredfields, PersonellTable.PersonellType & Format(PersonellTable.PersonellID, "000") as FormattedID
FROM PersonellTable
INNER JOIN AddTask ON PersonellTable.PersonellID = AddTask.PersonellID
I have asked two similar questions, neither of which have been written with the necessary precision I need, but both of which have been answered correctly. I apologise for this and I will attempt to ask the question again with suitable precision.
I have a form on which I am attempting to display information from several tables. The form is called contacts1. The main database table the form is based on is a customer table called contacts, and is keyed on contact_id. I use the form to display information relating to a contact. I want to also display the address of a contact (in a text field called concatAddress). The address information is in a database table called address, keyed on address_id, and has a foreign key relationship with the contacts table via contact_id.
I have an expression I am trying to use to display the address: =DLookUp(" [address]![address_line_1] & [address]![ address_line_2] & [address]![city]","[concatAddress]","[address]![contact_id]=" & [Forms]![contacts1]![contact_id]). This gives me an #Error on my form. I am unsure what is causing this error.
Why would my expression cause the error please?
Oh dear. I have the answer: I forgot to include the table the address data is coming from - I mistook the table name field for the field the data is going into. So, this works:
=DLookUp("address_line_1 &" "& address_line_2 &" "& city","[address]","[address]![contact_id]=" & Forms!contacts1!contact_id) (I added spaces between the address fields and the city).
I hope this helps someone - I've been playing with this for a while now.
I am trying to use SSIS Flat File destination, but cannot come up with a work around for getting the output file to have two columns named to same thing.
I have a requirement for the output file to have the column headers:
first1, last1, email, shortname, email
Whenever I try to map the source data, I get error messages saying things like "This column name already exists" and "There is more than one data source column with the name "email"".
What's the best work around?
Thanks
Assuming I understand the problem correctly, you need to have the same column name in the output file twice. Doesn't matter whether it's same data or not, just the header needs to be repeated.
It's a little hokey, but in your connection manager, uncheck "Column Names in the first data row" and redefine the columns as email and email1. This will allow you to connect the columns to the right places in the file.
In your flat file destination, you have the ability to define Header row(s). It's very limited, you can't put useful things in there like dynamic checksums and such but in your case, paste in first1, last1, email, shortname, email and run the package. Data will be extracted to the correct columns and a header row will be prepended to the file with all the "right" field names.
Two downsides to this approach. First is the connection manager becomes output only as it would attempt to read in the header row from the file. Second is that any changes to the layout will not be kept in sync with the manual header row.