Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Below is the matching with combination of id to id & previous date data where we have to display null values.
trying below syntax in script
if(peek(id)<>id and peek(num(date)) <> num(date) as flag.
can you please help and thank in advance
Hi @bhaskar1986
not really sure what your are trying to achieve here.
but consider that peek will give you the previously loaded row in a table. So, my guess is that you need to sort your table by id and date and then use the peek or previous
something like this:
https://community.qlik.com/t5/Design/Peek-vs-Previous-When-to-Use-Each/ba-p/1475913
Best,
help users find answers! Don't forget to mark a solution that worked for you & to smash the like button!
can you please be clear of what you trying to do here? are you comparing curent id to previous id and date with previous date, if they are not same display null?
matching current date id with previous id date and last written by order by but some how values not getting null values.
try: if(id=previous(id) and date=previous(date), 1) as flag.