Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

number of unique rows in a table

hi,

I want to count the number of unique rows based on different attribute in the table,

Week Ending DateTargetBuild IDModemL1 Test StatusL1 Test hrsL1 Blocking Issues
96
2009-10-188650 WM 6.5AB1UMTSL1 Pass24
2009-11-158650 WM 6.5AB2UMTSL1 Pass24
2009-09-068650 WM 6.5AB3CDMAL1 Pass24
2009-09-068650 WM 6.5AB4UMTSL1 Pass24


so in this case based on the Week Ending Date],Target,Modem it should give me unique number of rows.

so for the above case for date 2009-06-09 the count should be 2 where as for the other 2 rows it should be 1-1.

I tried the aggr function but it seems to be giving me count as 1 for all the rows.

can someone please help.

Thanks,

1 Reply
Not applicable
Author

Hi,

i think your Week Ending Date Format might be with timestamp thats why its not giving you count

Change Format OF Week Ending Date in to 'YYYY-MM-DD'.......