Informatica | Update table with two primary keys - informatica

If target table has three columns as primary key, but you want to update the same table through informatica using only two columns from those primary key column?
How can we achieve this?

Related

Aaggregate fact table sales based on a dim table column that are related through another dimension table in power BI

I have a situation, I want to get the reseller sales for "WASHINGTON REGION"; the database is "AdventureWorksDW2019" and I have the column relation as follows:
The geography details are populated in "DimGeography" table,
The reseller details are populated in "DimReseller" table, where each geography, say in my case, WASHINGTON could have more then reseller; hence, there is many-to-one relation between "DimReseller" and "DimGeography" and the column in relation is "GeographyKey"
The fact table "FactResellerSales" table is populated with reseller-sales; hence there is many-to-one relation between "FactResellerSales" and "DimReseller" tables; the column in relation is "ResellerKey"
--and the fact table has indirectly relation with "DimGeography" table
I am struggling generate a DAX query to get reseller-sales total belonging to "Washington"; could anyone help me understand to achieve this?
Thank you for giving your valuable time; pls find the screenshot of the schema diagram attached to this email.

Redshift add new column based on values from existing column

I have a Redshift table I want to alter adding a new column, which values are derived from an existing column on the table.
Basically, only adding a column "year" which extracts the year from the column "snapshot_date".
Any ideas how to achieve that? Tried following code, but it errors out.
ALTER TABLE test_schema.table_name ADD year AS ( extract(year from snapshot_date) );

Power BI: sort by A-Z and then spaces

I have a table visualisation I am building with a column of names. Now if the column has a name then it should be sorted A-Z, and if it is blank, then should be at the bottom of the table. Anytime I sort currently, the spaces are at the top of the table, followed by A-Z sorting. Any idea on how to solve this in Power BI?
You will need a helper column for the sort order, because Power BI sorts blank before text.
You could use Power Query to extract a unique list of name values from the transaction table. Add a blank cell to that table, then create an Index column to assign a sort order to that column. Add that helper table to the data model and create a relationship to the transaction table.
In the data model, set the index column of the helper table as the "Sort by" column for the names.
You can now use the name values from the helper table in visuals. When you sort by the helper table names, the sort order from the Index column will be applied.

Referencing single value of another column in Power Query Editor

I would like to get a single value from "table2.MappedValue" for every record in table1 in Power Query Editor,
I have two tables, that have a many to one relationship, table2 is just a mapping table:
table1: ID | Values
table2: ID | MappedValue
when I try Table.Column(#"table2","MappedValue"), I get a list and not a single value.
I can do that from Table tools-> New Column, but I was wondering if that is possible in Power Query Editor.
You can do this by merging queries. In the query editor go to Home tab and select table1 click on merge and merge with table2. Next step is to expand your new column by selecting the dubble arrow in the column and select the column you want.

Power BI inactive relationships

I have an active relationship between table A and B that can’t be deactivated. Now, I have a inactive relationship between the same two table and I need to use this relationship as a filter for both. What can I do?
I have tried everything and I always manage to filter only one table.
Thanks everyone in advance
Ed
Concatenate both column of each table on which relations can be created and create a new relationship on this newly created column this will help u to filter the report using both the columns
Eg:- Table 1 - Relation ship columns are C1 and C2
Table 2 - Relationship column are C3 and C4
create a new column in table 1 say RC1 using dax Concatenate(c1,c2) and in table 2 say RC2 using
Concatenate(c3,c4) now create a realtionship on RC1 and RC2 (both side relationship)