Author Topic: running-total for auto???  (Read 1650 times)

Offline ejbaron

  • Full Member
  • ***
  • Posts: 6
  • Forum Citizenship: +0/-0
running-total for auto???
« on: 08 Mar 2007 11:14:57 am »
I am trying to create what I think should be a running-total calculation.  however, I want the "for" option to be dynamic, depending on how granular the user chooses to display the running total, that's how it should reset.  The user may want to see a running-total grouped at a high level, and then slowly add more granularity to the display and see the running-total become more granular.

I'm creating the calculation in Report Studio, but ultimately want to move it to Framework Manager where I can include it in an IQD file for a cube.  I'm open to the suggestion of putting the running-total calculation in Transformer if that will produce the right results, but I haven't gotten that far yet.

Thanks all!
EJB

Offline bdybldr

  • Global Moderator
  • Statesman
  • *****
  • Posts: 275
  • Forum Citizenship: +7/-1
Re: running-total for auto???
« Reply #1 on: 13 Mar 2007 07:41:06 am »
Try using...

RUNNING-TOTAL([fieldName] for CASE... WHEN...THEN...ELSE...)

In other words, use a case statement to determine the options selected by the user for grouping your data items.  If you provide more information, we can better assist you.

Offline MargaretAnderson

  • Associate
  • **
  • Posts: 3
  • Forum Citizenship: +0/-0
reply
« Reply #2 on: 03 Nov 2010 02:38:58 pm »
I think we all get a little bit distracted from the main topicstarter's theme