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 8551393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:11:09+00:00 2026-06-11T14:11:09+00:00

I am trying to get something to work on a form i am building

  • 0

I am trying to get something to work on a form i am building for my job and it doesn’t seem to be working the way i expect it to.

I want to calculate the percent difference between the two fields ANL_CMA1_NUM_CLOSED_SALES and ANL_CMA2_NUM_CLOSED_SALES.

I thought my math was correct but i am only getting results in single digits, either positive or negative depending on the inputted values.

I am working on a form where i can customize permission level and rounding, and i am rounding this to the nearest hundredth. Can anyone help me with this one?

The original formula did not have the -100) * 100) portion at the end of it but also did not work properly.

FormSet.SetFieldValue(CurrentForm, "ANL_CHG_NUM_CLOSED_SALES", 
(((FormSet.GetFieldValue(CurrentForm, "ANL_CMA2_NUM_CLOSED_SALES") - 
FormSet.GetFieldValue(CurrentForm, "ANL_CMA1_NUM_CLOSED_SALES")) /    
 FormSet.GetFieldValue(CurrentForm, "ANL_CMA1_NUM_CLOSED_SALES")) -100) * 100)
  • 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-06-11T14:11:10+00:00Added an answer on June 11, 2026 at 2:11 pm

    You may be using integer division (ie, 1/3 == 0) where you need floating-point division (ie 1./3 == 0.3333333).

    It may also be easier to understand if you break it up a bit –

    cma1 = FormSet.GetFieldValue(CurrentForm, "ANL_CMA1_NUM_CLOSED_SALES")
    cma2 = FormSet.GetFieldValue(CurrentForm, "ANL_CMA2_NUM_CLOSED_SALES")
    delta = float(cma2 - cma1) / cma1
    FormSet.SetFieldValue(CurrentForm, "ANL_CHG_NUM_CLOSED_SALES", delta*100.0)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to get something working in a windows 8 metro style application,
I'm trying to do something simple in JSF but I can't get it working
So, I've been trying to get this form to work (css and javascript), but
I'm trying to get something very subtle to work, it looks pretty awful right
iam trying to get all object's xpath's from loaded page via selenium something similar
I'm trying to get my mac app to do something whenever Safari is launched.
I'm kinda stuck on something... I'm trying to get #right to be the same
Im trying to write something to get my images to show correctly. I have
I'm trying to do something which I thought would be fairly simple. Get IIS
I'm trying to understand REST. Under REST a GET must not trigger something transactional

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.