
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sum if Sum - Condition Expression help
Hello,
Not sure if this is possible, but with the data I am working with I am stuck.
I have these fields:
Billable Hours
Network Days Flag
Employee
I am trying to perform a calculation if the...
(sum of billable hours) - (sum of Network Days Flag * 😎 >= 20, then sum the list of employees.
My current expression(that doesn't work):
Sum(if(Sum([Billable Hours])-Sum([Network Days Flag])*8>=20)[Employee])
Thanks in advance
- « Previous Replies
- Next Replies »
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AGGR(
if( Sum([Billable Hours]) - (Sum([Network Days Flag])*8)>=20,[Employee])
,[Employee])
For Calculated Dimension
If a post helps to resolve your issue, please accept it as a Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
if( Sum([Billable Hours]-(Sum([Network Days Flag])*8)>=20, count( distinct[Employee]))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try this...i think do you need count Employee, no????
sum({<[Employee]={"$(=Sum([Billable Hours])-Sum([Network Days Flag])*8>=20)"}>} [Employee])


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Assuming Employee is a numeric field!
Sum(
if( Sum([Billable Hours]) - (Sum([Network Days Flag])*8)>=20,[Employee])
)
If a post helps to resolve your issue, please accept it as a Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has an expression error?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Employee is not numeric, what could I do to solve this? My issue is trying to chart (in some way) only a list of employees if they are 20 hours or more. I have been trying to add filters, or an expression in several charts trying to accomplish this. THANKS

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if( Sum([Billable Hours])-(Sum([Network Days Flag])*8)>=20, count( distinct [Employee]))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am only trying to show employees if they meet the condition of 20 hours or more. Employee are names, not numeric. Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
count(distimc {<[Employee]={"$(=Sum([Billable Hours])-Sum([Network Days Flag])*8>=20)"}>} [Employee])


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rodrigo's Solution should work for you
or else try
Sum(
if( Sum([Billable Hours]) - (Sum([Network Days Flag])*8)>=20,1)
)
or
SUM(AGGR(Sum(
if( Sum([Billable Hours]) - (Sum([Network Days Flag])*8)>=20,1)
),[Employee]))
If a post helps to resolve your issue, please accept it as a Solution.

- « Previous Replies
- Next Replies »