Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Formula to calculate discount in DC

Community Beginner ,
Jul 07, 2020 Jul 07, 2020

Hi, I'm trying to do the following calculation: Quanity*Price - discount%. What is the formula I should use?
I'm really new to acrobat and I can't understand yet how does difficult calculations works. 

 

This is the table I'm willing to fullfill.

Cattura.PNG

Thank U in advance!

TOPICS
How to
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jul 08, 2020 Jul 08, 2020

Use something like this:

Quantity * Price * (100-Discount)/100

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 07, 2020 Jul 07, 2020

What sort of values do your discount fields have? 0 - 100? 0 - 1? Something else?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 08, 2020 Jul 08, 2020

Discount might be from 0% to 100%

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2020 Jul 08, 2020

Then you can use this simple formula:

 

Quantity * Price * (Discount/100)

 

Use the actual names of the fields in your file, of course.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 08, 2020 Jul 08, 2020

Sorry, I'm trying but it isn't working, what am I doing wrong?

I've tried both putting the formula in the "simple notation field" and also in "personal script"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2020 Jul 08, 2020

You have to use the second option (Simple Field Notation) but also add a back-slash before each space in the names of the fields.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 08, 2020 Jul 08, 2020

Ok now it's working. BUT there is a probelm, what I see in the Total value field is not the Price*quantity- discount. I see the amount which I would subtract from the unit price with a perticular percentage of discount.Cattura.PNG

For example here under Total Value I se 3.090,00 which is not the total value-discount. But is the amount of discount. I should see 12.360,00 €

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2020 Jul 08, 2020

Use something like this:

Quantity * Price * (100-Discount)/100

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 08, 2020 Jul 08, 2020

I tried but nothing is happening...
This is what I wroteCattura.PNG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2020 Jul 08, 2020

What value does you get?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 08, 2020 Jul 08, 2020
LATEST

I was forgotting the sace between words, now is perfectly working! Thank U

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2020 Jul 08, 2020

You replaced the spaces with back-slashes. That's not what I said. You need to add the back-slashes before the spaces.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines