Forum Discussion
Gelain
9 years agoFrequent Visitor
Unique column values
Hi, The FCFO table contains the CODCFO column where customer and vendor codes are recorded. Therefore, a relationship error occurs between the TMOV and FCFO columns because one of the columns must...
- 9 years ago
Hi Gelain,
How is the real data like? If it likes the sample you posted here, we could create two new table with these formulas. Finally we can create relationship. If not, could you please post a sample?
Customer = FILTER ( 'Table1', LEFT ( 'Table1'[Name], 8 ) = "Customer" )
Supplier = FILTER ( 'Table1', LEFT ( 'Table1'[Name], 8 ) = "Supplier" )
Best Regards!
Dale
Gelain
9 years agoFrequent Visitor
Hello,
The data source is SQL Server. Would you have any way to solve this problem?
Thank you.
Wout
9 years agoHelper I
Do you have the permission to customize the SQL database?
Add a new column to your table: http://www.1keydata.com/sql/alter-table-add-column.html
Add (and remove current PK) new PK & Auto incremental to the new column.
https://stackoverflow.com/questions/11794659/add-primary-key-to-existing-table
P.s. Test it first on a local/test SQL database.