Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

duplicate records by dimension

Hi experts

I need to find all duplicate "equipement" records in a timestamp. Currently I have this formula:

alt(aggr(count(distinct{<[equipement]= {"=count([equipement]) > 1"}>} 1), [equipement]),0)

How do you reflect the dimension timestamp? I need to find out all equipement duplicate in a timestamp. Thanks!

TomBond77_0-1708928615582.png

 

Labels (6)
1 Solution

Accepted Solutions
henrikalmen
Specialist II
Specialist II

You could do it in script:

load distinct [Timestamp], equipment, count(distinct equipment) as EqCount resident mytable group by [Timestamp], equipment;

This principle should give you a counter per combination of timestamp and equipment, i.e. how many times each equipment exists within the same timestamp. To find duplicates you just look at those where the number is higher than 1.

But actually you could try that in a chart as well with the dimensions timestamp and equipment, and then a measure that is count(distinct equipment).

View solution in original post

1 Reply
henrikalmen
Specialist II
Specialist II

You could do it in script:

load distinct [Timestamp], equipment, count(distinct equipment) as EqCount resident mytable group by [Timestamp], equipment;

This principle should give you a counter per combination of timestamp and equipment, i.e. how many times each equipment exists within the same timestamp. To find duplicates you just look at those where the number is higher than 1.

But actually you could try that in a chart as well with the dimensions timestamp and equipment, and then a measure that is count(distinct equipment).