cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

sap-di-is-unique-function.jpg

Hello Everyone,

We are trying to develop a data quality rule for uniqueness dimension using Is_unique function in data intelligence. However, we are getting an error message (attached) stating this function is not supported in DI. Please help with some workaround.

Thanks in advance.

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

amish1980_95
Participant
0 Likes

Hello,

is_unique is not avalibale on SAP Data Intelligence trial edition 3.1 as well.

Thanks,

Indu.

michael_eaton3
Active Contributor
0 Likes

Hello

Use the exists function.

exists(<connection name>, <table name>, <comparison column>, <parameter or value the compare column will test>)

Michael

0 Likes

Hi Michael.

The exists function works well for comparing one column. Is there any way we can compare uniqueness of combination of two or more columns. For instance, one customer should have one mobile number. In this case, we need to compare the uniqueness of customer id and mobile number.

Many thanks for your support.

michael_eaton3
Active Contributor

One technique is to concatenate the source columns first, then you can compare them to a single concatenated value.

bharathkote
Explorer
0 Likes

How can we use for loop in the scripting? pls provide the syntax