previous row value in data table in Spotfire - arrays

This is super easy in excel.. Couldn't find it this in Spotfire easily.. Quick help would be appreciated.
Question:
In the calculated column, I like to add previous row data.
For example, in attached sheet calculated column "Previous CODE". I like add data of Column "CODE" from previous row.
Please let me know incase something is unclear.

you can achieve this with a calculated column having the expression:
First([CODE]) OVER Previous([EVENT_DATE])

Related

Transpose the row data into a single row based on a column in SQL

I have a table structure as below.
Each name has multiple parentids. i want to create a query to Display the row values of column ID and Name in a single row based on parentid something like below.
Please help me how to achieve this. this is one of the question asked in interview

Alternative to VLookUp that can check if two factors are true

I am wondering is there any alternative to VLookUP() that can check two factors before returning a value. I want to search for an identifier that is only unique for a given date.
I.E the Key exists multiple times in the dataset but only once for each date so the date and the key combined form a primary key.
Note: I want to do this without adding a column to the dataset.
This is a simplified example. I want a formula that will return 304 if I look up using 02/03/20 and 89076.
My current solution is to make another column that concatenates column A and column B and then do a Vlookup on the column but I am looking for a solution that does not require adding another column.
Using Excel 2010
In Excel 2010, if you not looking for a figure but actual text, try the following:
=INDEX(D:D,MATCH(1,INDEX((A:A=DATEVALUE("02/03/20"))*(B:B=89076),),0))

equivalent SQL Queries of index match (excel) to update column in existing table

I need to update an existing table by adding a new column. Below is the sample data for the first table which needs to be updated with the new column(Ticket_No_Calc).
And here is the sample data of the second table.
In Excel, I use this formula in order to get the output for the new column (Ticket_No_Calc).
=IFERROR(IF(D2="MKT",INDEX(Second!A:A,MATCH(First!B2,Second!B:B,0),0),INDEX(Second!A:A,MATCH(First!C2,Second!B:B,0),0)),INDEX(Second!A:A,MATCH(First!A2,Second!B:B,0),0))
I am not sure on how to translate this formula into SQL command. Could someone please help me with this please
Thank you.

How to report on serialized data in a custom field on Opportunities?

I added a custom field (Long text) to Opportunities called 'Month_Breakdown'. It carries data like: 'Jan=10000&Feb=50000&Jun=20000&Dec=89000'. I would like to have a report that shows opportunities grouped by Month. Hopefully which I can export later as a PDF or excel. Please take a look at screen shot.
Basically would like to go through all the opportunities and present the report. So far I created a custom report with 'Opportunities' as the primary object. Any tips would be greatly appreciated.
You are probably best off swapping the rows and columns and adding your Month_Breakdown__c field as the group by rows. You can then put in the Booked, Starting at Risk and Out For Signature as the columns. Finally, you can create a Summary Column by clicking the down arrow next to columns and selecting "Add Summary Formula". Your formula can be something like BOOKED__c:SUM + STARTING_AT_RISK__C:SUM + OUT_FOR_SIGNATURE__C:SUM.

Excel lookups - different parts of an array

I have an excel spreadsheet that has various dropdowns. I would like to use the vlookup function elsewhere in the spreadsheet to provide data from different parts of the same array depending on the result of the dropdown. Anyone able to help? Thanks
Your drop down must point to the correct row and column index in the array. You could try a dropdown that identifies the the column number and another that identifies the key in the first column of the array to return the row. Please clarify your question with an example if you'd like a more coherent answer.

Resources