Vignesh Kannan Posted April 1, 2020 Share Posted April 1, 2020 hi, i have columns as shown below: I want to find out : if column 1="A" then find column 2 is repeated how many times like below :Under A filter AB is repeated 2 times column 1 column 2 calculation column A AB 2 B AB NA A AB 2 B BC NA A BC 3 B BC NA A BC 3 B BC NA A BC 3 Link to comment Share on other sites More sharing options...
Shashank Gurnalkar Posted April 1, 2020 Share Posted April 1, 2020 Use the following expression: case when ([column 1]="A") and ([column 2]="AB") then Count([column 2]) OVER ([column 1]) when ([column 1]="A") and ([column 2]="BC") then Count([column 2]) OVER ([column 1]) endIt will give results the same as your shown calculated column. Link to comment Share on other sites More sharing options...
Vignesh Kannan Posted April 2, 2020 Author Share Posted April 2, 2020 hi thanks for the solution, i have one more clarification if i have only one column as shown below how to find unique values and repated values. column 1 calculation column AB First Row AB Duplicates AB Duplicates BC First Row BC Duplicates BC Duplicates BC Duplicates BC Duplicates BC Duplicates i tried to use the below function but doesn't work: If(Rank(Baserowid(),"asc",[myGroup1])=1,"First row of group","Duplicate") Link reference:https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-42284 Link to comment Share on other sites More sharing options...
Shashank Gurnalkar Posted April 2, 2020 Share Posted April 2, 2020 You need to add your column in it. Use this expression. It's working for me. If(Rank(Baserowid(),"asc",[column 1])=1,"First row of group","Duplicate") Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now