Forum Discussion
Debugging TOJSON
- 3 years ago
There was a bug when MaxRows is -1 that was fixed recently. You need to wait for the next Desktop release. Unfortunately dynamic expression for the MaxRows parameter isn't supported.
It seems like a bug to me since it gives the following error rather than something more descriptive but, as PhilipTreacy mentioned, the official documentation doesn't say that it's supported.
Interstingly, dax.do doesn't throw an error for the query
EVALUATE {TOJSON(GENERATESERIES(1, 100000,1),-1)}
I have an application where it can become extremely useful.
I really don't care about -1. I only want an expression/dynamic expression to include all rows.
BTW it does not work too.
jeffrey_wang can you shed some light if it is doable.
- jeffrey_wang3 years agoPower BI Team
There was a bug when MaxRows is -1 that was fixed recently. You need to wait for the next Desktop release. Unfortunately dynamic expression for the MaxRows parameter isn't supported.