Comparison of Multiple column of single row in Informatica - informatica-powercenter

I have a requirement in Informatica powercenter development, where I need to populate a column after multiple column Compaeisons
Like for ex - we have Brand name in 30 Columns of same row, I have to populate a field in target table based on all these 30 Columns, if all the 30 Brands are equal then only we have to populate the Brand name else I have to populate Brand do not match.
also there may be case that some brands fields are are null but we do not have to compare that with not null Brands.

Either use a DECODE function with OR, or do an MD5 on concatenation of all your columns and compare the result.

Related

PowerBI - Lookup by Multiple Criteria

I'm a new PBI user and would like help on the following:
I have 2 tables (Table 1 & 2). Table 1 is a bookings report showing sales orders, part numbers and order value. Table 2 is a margin report showing sales orders, part numbers with additional descriptive text and margin value.
I would like to copy margin values from Table 2 into a new column in Table 1 by looking up by sales order and part number.
Any help would be appreciated!
Tables1
Extract text using the LEFT function
Use the COMBINEVALUES function to create new column in each table. The new column will merge two existing old columns.
Depending if you have unique values in the lookup table, use LOOKUPVALUE function, if not, use this approach: DAX lookup first non blank value in unrelated table

Power Query - multiple data types in one column (dates & text) - adding conditional column to break up data

I have multiple data types in one column (dates & text) see table below - I'm wanting to add new column so that one column has date values only and the new column has the text values only.
I guess that I need to add a conditional column but I don't know the language to do it.
I found the solution here:
Basically you duplicate the column, change the column type to one of the types (I changed to date type), therefore the text changed to errors.
I then changed errors to null values.
Then I added a conditional column and substituted the null values for the values in the original column.
See link below for example:
https://www.excelguru.ca/blog/2016/11/30/extract-data-from-a-mixed-column/

Delete columns from BIRT report

I have a BIRT Excel Report with 10 columns. I have a query which executes and brings the data for all the 10 columns.
However, based on one of the input parameters, i need to display just 8 columns. I am able to hide the remaining 2 columns but i would like to delete those 2 columns from the report so that user does not see the hidden columns.
I tried to change the query but i am unable to dynamically set the select parameters.
Is there a way either in Query or in BIRT to remove few columns based on an input condition.
You cannot delete the columns, but it's sufficient to hide them dynamically using the column's visibility expression. You can add an aggregation to the table, using the MAX function for the column data (let's call it max_name).
E.g. if your table column shows the DS column NAME and you want to hide the column if NAME is empty for all rows:
Add an aggration (let's call it MAX_NAME) to the table, with the aggregation function MAX and the expression NAME. Then in the visibility expression of the table column, use !row["MAX_NAME"] as the expression.
After drag and drop the dataset. Right click on column header and select the delete column option.

update table based on concatenated column value

I have a table with only 4 columns
First column - The concatenated column values for each row from another table.The columns are concatenated based on column id from the metadata table.The order of concatenation is the same order of column ids.
Second column -I have the comma separated primary key columns.
Now, based on the primary keys in the second column, I need to update the 3rd column which will retrieve the values for the primary key from each of the first concatenated field.
4 column _ it has the table name.
I am using cursor and string functions and it works perfectly fine but when I tested it fir huge millions of data , it failed and the performance is very poor.
Could anyone give please me a single update query for the same
There is a comparison tool which compares the data between 2 tables in different database but with same data structure and it dumps the mismatch rows into a table with all the columns concatenated(pipe seperaed).The columns are in the same order as that of column id and I know the primary keys for that table(concatenated but pipe seperated). So, based on this data I need to extract the primary key values for which there is a data mismatch.
I need to do something like
Update column4(primary key values pipe seperated extracted from column2)
Check this LINK, maybe will be useful. With that query you could concatenate a value with a character you need (this works for 11g2 version, for earlier versions use xmlagg
, xmlelement, extract method).
CREATE TABLE TEST(
FIELD INT);
INSERT INTO TEST VALUES(1);
INSERT INTO TEST VALUES(2);
INSERT INTO TEST VALUES(3);
INSERT INTO TEST VALUES(4);
SELECT listagg(FIELD,',' ) WITHIN GROUP (ORDER BY FIELD)
FROM TEST
Returns '1,2,3,4'

Spilt data table into multiple data table on basis of dates in column

I have some specific issue with data table that i have to split it dynamically on the basis of dates which are in data table column.
for example:
enter link description here
Now according to dates I should get 3 data tables having name respectively.
I could not Linq so how can resolve this problem????
Thnks.
you can sort the table according to the date column and then go over the rows data and create new table for every new date

Resources