Count items in a flat list?

Highlighted
Occasional Contributor

Count items in a flat list?

Hello, 

 

I am trying to count how many items are in a list and display it in a module?

In the example below we have 3 items in the list. 

 

Does a function like this exist? 

 

 

CommunityMember129223_0-1588098473824.png

 

2 REPLIES 2
Highlighted
Master Anaplanner/Community Boss

Re: Count items in a flat list?

Create a system module (with #promotion flat as a dimension) with a line item called "count" and a formula of just "1".  Create a second module which is a "totals module" (without #promotion flat as a dimension).  In the totals module create a line item called count that directly references the system module (system module.count).  It should naturally grab the top level.  

Highlighted
Occasional Contributor

Re: Count items in a flat list?

Thanks! That worked. I was overthinking it.