Skip to Content
author's profile photo Former Member
Former Member

Varying number of decimal places for a field using Formula Editor

Hi

I have a field that displays a product price that I would like to conditionally format the number of decimal places that are displayed depending on another field value (in this case Unit of Measure) - eg no decimal places if being sold in Kgs or 2 decimal places in Metres etc

I have tried Format Editor, Number tab then Custom Style, Number tab & opening the Formula Editor for the Decimals value but cannot work out what formula I should be using.

Can anyone point me in the right direction please?

Thanks

Jon

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2014 at 10:57 PM

    Hi

    Apologies, I think I have found the answer.

    I had been trying to use the Fix or Round function but instead only needed to enter a number as the required answer to the formula

    ie if ({UOM}="Kgs" then 0 else 2

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.