Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2756

Re: Is there any way to remove duplicate from column

$
0
0

Hello Amit,

 

If your requirement is like what Amit Kumar mentioned the please go ahead with his approach. But, if you are looking to hide entire duplicate row e.g.

 

Closed     Permanently Resolved     Service Desk-General     No since this has multiple entries then please refer to steps below.

 

I tested the results on below table and will eleminate ID=2 since its an duplicate.

 

Create 4 variables on your report.

 

IDNameDeptSal
1ABCCA1000
2ABCCA1000
3ABCCA2000
4ABCFI5000
5DEFFI5000

 

Variable1(Dimension) =[Name]+[Dept]+[Sal]

Variable2(Measure)=RunningCount(NoFilter([Variable1]);([Variable1]))

Variable3(Measure)=Max(NoFilter([Variable2])) In ([Variable1])

Variable4(Dimension)=(([Variable2]=[Variable3]) And ([Variable3]<>1))

 

Now pull the Variable 3 in your block and apply filter to the block saying [Variable4]=0. Then just hide the dimension [Variable4].

This will eliminate your duplicates from the block. Hope this helps I used this logic in an opposite manner where I had to just show the duplicate values.

 

You probably may have to replace [Name], [Dept] and [Sal] by the columns that you want to consider as duplicates.

 

Thanks

Niraj


Viewing all articles
Browse latest Browse all 2756

Trending Articles