Skip to main content
Aug 28, 2018 8:05 AM UTC
Solved

How to delete duplicate rows from a infotable field ?

I have a field with a values for example

worker

worker

manager

manager

 

and I want to delete those duplciates so the result in field will be

worker

manager

TanmeyTWXAnswer
Aug 28, 2018 10:43 AM UTC

Hi  @Aleksandar,

 

What exactly is your requirement?

If you want to just display unique rows out of an Infotable,you can use below Distinct Snippet.

 

var params = {
t: undefined /* INFOTABLE */,
columns: undefined /* STRING */
};

// result: INFOTABLE
var result = Resources["InfoTableFunctions"].Distinct(params);

 

Regards,

Tarun

2 replies

TanmeyTWXAnswer
Aug 28, 2018 10:43 AM UTC

Hi  @Aleksandar,

 

What exactly is your requirement?

If you want to just display unique rows out of an Infotable,you can use below Distinct Snippet.

 

var params = {
t: undefined /* INFOTABLE */,
columns: undefined /* STRING */
};

// result: INFOTABLE
var result = Resources["InfoTableFunctions"].Distinct(params);

 

Regards,

Tarun

Aug 29, 2018 6:29 AM UTC

Thank you !