The count should be accessible via the length property from the model as it is just returning a normal JS Array. So for example, if the model name you passed onto it is ng-model=“lists.accounts”, then the count should be accessible via:
A related question: I’m using a named MDX to create a table with weeks on the columns and customers on the rows. Is there a way to count the number of non-zero values for any given column? E.g.:
How are you retrieving the results? Iterating through them as an array should be one of the fastest way to go about it.
You can use the standard for-loop or one of the built in libraries in there, Lodash (in particular _.each() ) to iterate through them and store the consolidations for each group/column. There should also be lots of articles about iterating through arrays in the web.
If you have a consolidated value in the TM1 server, then a DBR would also workout.