I'm trying to do a query from an Azure Data Explorer, see the query below.

The problem i'm having is with the top operator. '"&Samples&"' is the text input from my power app (see below). This doesn't seem the work the query comes back with KustoResultsPost failed: _scrubbedSensitiveData... However when i replace the '"&Samples&"' with a number like 10, the query works perfectly fine. I've set the format for the text input to number.

Any idea why this is happening?