Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Equivalent of @@ROWCOUNT

As in the title - is there an equivalent of SQL @@ROWCOUNT function in QlikView?

Regards,

Przemek

1 Solution

Accepted Solutions
julian_rodriguez
Partner - Specialist
Partner - Specialist

I'm not expert on Transact-SQL... but is it like an Mapping routine?

View solution in original post

5 Replies
whiteline
Master II
Master II

Hi.

I guess no.

What is the purpose to have it ?

julian_rodriguez
Partner - Specialist
Partner - Specialist

You may create a field with the function RowNo()... and then calculate the maximum value of it?

Not applicable
Author

I need to apply tens of replace statements to clean text. For that, I've got the below SQL script but would like to transfer it to QV. I've tried with peek loops but with no success. If I'd nest the replace statements, I'd end up with something like a meter long script line.

WHILE @@ROWCOUNT >0

UPDATE T

SET Text = REPLACE( T.Text, V.Variable, V.Replacetext)

FROM #Text AS T CROSS JOIN #vars AS V

WHERE T.Text LIKE '%'+V.Variable +'%'

julian_rodriguez
Partner - Specialist
Partner - Specialist

I'm not expert on Transact-SQL... but is it like an Mapping routine?

Not applicable
Author

Sure it is 🙂 Rob's Cookbook has perfect example for that. Thanks.