Hi,
You can use RunningCount() function as below:
=RunningCount([State];([Year]))
PFB Screenshot:
If you want to calculate the Empty Space, then include the keyword IncludeEmpty before the Reset Dimension. PFB:
=RunningCount([State];IncludeEmpty;([Year]))
In your case, Formula looks like:
=RunningCount([G/L Account];([Funds Center]))
Here,
[G/L Account] is your Dimension(or Hierarchy) object for G/L Account
[Funds Center] is your Dimension object for Funds Center.
As i mentioned, if you want to count empty spaces also, then use the below formula:
=RunningCount([G/L Account];IncludeEmpty;([Funds Center]))
Hope this answer helps you!!!
Thanks,
Parthiban