Jump to content
The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now! See more information here ×

How to avoid negative values (


gurusai sankar

Recommended Posts

Hi All,

Please help me thatHow to avoid negative values totals (1 then Sum(case when [Distinct]=1 then [CAPACITY_FTE] else 0 end) else sum([CAPACITY_FTE]) end) - (case when count([RESOURCE_NAME])>1 then Sum(case when [Distinct]=1 then [ALLOCATION FTE GRP] else 0 end) else sum([ALLOCATION FTE GRP]) end) as [AVAILABILITY FTE]

As pe the sceenshot : i am expecting the grnad total is 2 insted of showing 1.94

 

Kindly help on this.

 

Regards,

guru

Link to comment
Share on other sites

Hi Jim,Thanks for your quick response. let me explain the scenario with example.Ex: i have a column called Availability FTE. it contains the data in the below. (positive & negative values)

 

Resource project Availability FTE:

A abnc -0.5

B ghj 1.6

C hjii 1.4

 

Grand Total ------------------------ 2.50 (1.4+1.6-o.5 = 2.50)

 

but as per my requirement-----negative values should show in the list but for the grand total- it should be calculate only positive values (ie 1.6 + 1.4 = 3.0 ). so for this scenario grand total should be 3.0. (note : for individual - we can show negative values in the total, only for grand total- we should avoid negative values to sum up, but e have to show negative values also in the list of the table.

 

hope it helps.

kindly let me know if need any additional information.

 

thanks in advance,

guru

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...