Forum Discussion

jmcconville's avatar
jmcconville
Frequent Visitor
7 years ago
Solved

Convert Decimals to Custom Fractions

I need the summarized values (on charts and tables) to show as a custom fraction. My organization counts contracts in 13 week incriments. IE 1 contract = 13 weeks. If a contract is less or more than ...
  • LivioLanzo's avatar
    LivioLanzo
    7 years ago

    Hi jmcconville

     

    you can alsways add it like this:

     

    Column = 
    VAR _decimal = 13
    VAR _Remainder = MOD( [ContractsMeasure], 1 )
    RETURN
    IF(
        _Remainder = 0,
        "" & [ContractsMeasure],
        [ContractsMeasure] & " " & ROUND( _Remainder * _decimal, 0) & "/" & _decimal
    )