Skip to main content
1-Visitor
August 28, 2018
Solved

How to delete duplicate rows from a infotable field ?

  • August 28, 2018
  • 2 replies
  • 3214 views

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

Best answer by TanmeyTWX

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

TanmeyTWX17-PeridotAnswer
17-Peridot
August 28, 2018

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

1-Visitor
August 29, 2018

Thank you !