Discussion board where members can get started with Qlik Sense.
Simple one I hope. I have created a duplicate flag in the script which the load does not like. Is there something wrong with the formula or can it simply not be done???
if(count(EpisodeNumber) - Count(distincEpisodeNumber) >1,1,0) as DuplicateEpisode_Flag,
You would need to aggregate your count first:
load distinct EpisodeNumber
drop table DistinctEpisode;
load *, if(EpisodeNumber-$(vDistinctEpisodeNum)>1,1,0)as DuplicateEpisode_Flag
drop table Table;
drop table <YourTable>;