Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6868991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:30:10+00:00 2026-05-27T03:30:10+00:00

I am trying to sum two different formula fields in Crystal. It will not

  • 0

I am trying to sum two different formula fields in Crystal. It will not let me select them from the Sum. The first formula is

if Sum ({tblPostedLine.pli_QUANTITY_SHIPPED}) >= 1 
then {tblPostedLine.pli_NET_PRICE}
else ({tblPostedLine.pli_NET_PRICE} * -1)

I am trying to take a price and make it a negative value if the quantity is a negative value. I then want to sum the amounts to get a net amount that was shipped.

The other formula is

If PreviousIsNull({RodsvwCatalogAnalysis.pro_PROMOTION_CODE}) 
or ({RodsvwCatalogAnalysis.pro_PROMOTION_CODE}) <> 
Previous({RodsvwCatalogAnalysis.pro_PROMOTION_CODE}) 
then {RodsvwCatalogAnalysis.pit_AREA_PER_PAGE} else 0

With this formula, I am trying to sum at a group level, not the details level. When I just sum the group level number, it is adding it every time the value is listed in the details as well.

I am open to any suggestions.
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:30:11+00:00Added an answer on May 27, 2026 at 3:30 am

    For the first scenario,
    Create 1 variable formula in detail level to hold with your requirement.
    for e.g.

        @NetPrice , formula if {tblPostedLine.pli_QUANTITY_SHIPPED} >= 1 then 
    {tblPostedLine.pli_NET_PRICE} else ({tblPostedLine.pli_NET_PRICE} * -1)
    

    using running total field feature in your Field Explorer to sum up the value and place
    your group footer.

    For the second scenario, I believe it relate to promotion group and again you could use the running total field feature to evaluate the sum condition and reset the value when condition are meet like field value change.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a method that will sum two timeO objects and return
Trying to figure out how to write a jquery formula that will sum all
I have two different queries: SELECT PB_BANK_CODE, PB_BANK_NAME FROM GLAS_PDC_BANKS WHERE PB_COMP_CODE='1' AND PB_BANK_CODE='025'
I have two select statements that I am trying to port from Oracle to
I'm trying to SUM two rows obtained from differente SQL queries in UNION, is
I'm trying to select the order total sum ($) and invoice count over a
I'm trying to sum two columns, and subtract the two sums to get a
I am trying to perform two different SUMs within a single query. user points
Trying to create a table for quantiles of the sum of two dependent random
Hi I am trying to sum two function handles, but it doesn't work. for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.