0

sum((select......... with two values

Hi, I try to use this formula but don't work 

sum((select Line).Plan_Earned_Act_E;
    Plan_Earned_Act_P) or 

sum((select Line).Plan_Earned_Act_E + 
    Plan_Earned_Act_P)

6 replies

null
    • Paul_Chappell
    • 2 yrs ago
    • Reported - view

    Did you try:

    sum((select Line).Plan_Earned_Act_E) + sum((select Line).Plan_Earned_Act_P)
     

      • Rafael Sanchis
      • Rafael_Sanchis
      • 2 yrs ago
      • Reported - view

      Paul Chappell 

      Yes work thanks Paul 馃憤

    • Fred
    • 2 yrs ago
    • Reported - view

    Or you can do:

    let x := (select Line)
    sum(x.Plan_Earned_Act_E) + sum(x.Plan_Earned_Act_P)
    

    For this formula the two selects won't make a big difference, but just to get into the habit of limiting the use of select statements.

      • Rafael Sanchis
      • Rafael_Sanchis
      • 2 yrs ago
      • Reported - view

      Fred 馃憤

    • Ninox developper
    • Jacques_TUR
    • 2 yrs ago
    • Reported - view

    Or :

    sum((select Line).(Plan_Earned_Act_E + Plan_Earned_Act_P))
    
    • John_Halls
    • 2 yrs ago
    • Reported - view

    Great seeing the progression here...

Content aside

  • Status Answered
  • 2 yrs agoLast active
  • 6Replies
  • 173Views
  • 5 Following