Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
danieldors
Contributor III
Contributor III

Count Value Under One Column

Hello,

 

I currently have one column with case numbers, and would like another which would tell me how many times that case is under the first column, in essence flagging me duplicates. Thank you.

Labels (4)
3 Replies
Ahidhar
Creator III
Creator III

use count distinct

Alexan02
Partner - Contributor III
Partner - Contributor III

Hola! 

Si quieres envíanos un caso práctico para entender el problema de manera visual y así podremos ayudarte mejor.

Gracias, un saludo.

sidhiq91
Specialist II
Specialist II

@danieldors  Please use the below script:

NoConcatenate
Temp:
Load * Inline [
Case_Number
111
111
112
113
112
114
115
115
];

NoConcatenate
Temp1:
Load Case_Number,
count(Case_Number) as Total_Case_Number
Resident Temp
group by Case_Number;

Drop Table Temp;

Exit Script;

If this resolves your issue, please like and accept it as a solution.