Jump to content

Dividing Two Monthly Rolling Totals


Tony Mak

Recommended Posts

Hello,

Having some issues with this expression. Each expression works fine but I can get the right numbers when dividing them.

A) Sum(if([isOpen]="Closed",1,0)) THEN Sum([Value]) OVER (AllPrevious([Axis.X]))

B) Count([ChangeRequest_ID]) THEN Sum([Value]) OVER (AllPrevious([Axis.X])) as [Total]

 

 

Sum(if([isOpen]="Closed",1,0)) OVER (AllPrevious([Axis.X])) / Count([ChangeRequest_ID]) THEN Sum([Value]) OVER (AllPrevious([Axis.X])) as [DRI]

 

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...