ValQ - Plan
FormulaProductChangelogStart Trial
  • Introduction to ValQ
    • Get ValQ
    • The ValQ Workflow
  • Model
    • Get Data
    • Create Model
      • Dynamic Model
      • Custom Model
      • Import a Model
    • Model Editor
      • Node Operations
      • Editor Features
    • Node Settings
    • Templates
      • Apply Template
      • Manage Template Nodes
      • Import Template
      • Export Template
    • Formula Functions
      • Logical Functions
        • IF
        • SWITCH
        • AND
        • OR
        • NOT
        • XOR
        • IFNAN
      • Math Functions
        • SUM
        • SUBTRACT
        • PRODUCT
        • DIVISION
        • AVERAGE
        • AVERAGEEXZERO
        • AVERAGEEXNEG
        • AVERAGEEXZERONEG
        • COUNT
        • ABS
        • MIN
        • MAX
        • POWER
        • SQRT
        • EXP
        • LOG
        • ROUND
        • FLOOR
        • CEILING
      • Finance Functions
        • IRR
        • NPV
        • PMT
        • IPMT
        • FV
        • PV
        • CUMIPMT
        • CUMPRINC
        • RATE
      • Range Functions
        • RANGE
        • LastNPeriods
        • Get
        • ForEach
        • findByTitle
        • GETCURRENTRANGE
        • GETROWVALUE
        • THIS_SOURCE_KEY
        • PERIOD_LOOKUP
        • PRIOR_SERIES_PERIOD_LOOKUP
      • Static Identifiers
        • THIS/ME
        • CURRENT_SERIES*
        • CURRENT_SERIES_ID*
        • CURRENT_PERIOD_INDEX
        • CURRENT_NODE_VALUES
        • DS.SERIES
      • Node Properties
        • Node Properties Explanation
    • Global Settings
  • Plan
    • Create New Plan
    • Time Series Forecasting
    • Allocation Features
      • Goal Seek
      • Distribute
      • Copy to Periods
    • Driver Based Planning
      • Enabling Driver Based Plan
      • Configuring Driver Inputs
      • Bulk Configuration of Drivers
    • Plan Interface
  • Simulate
    • Create a Scenario
    • Perform Simulations
    • Manage Scenarios
    • Simulation Interface
    • Add Notes
    • Compare Scenarios
    • Scenario Analysis by Node
    • Create Initiatives in a Scenario
      • Steps to create initiatives
    • Create your Presentation
    • Understanding the Node Components
  • Report
    • Variance Analysis Report
  • ValQ Premium FAQs
  • Glossary
  • Resources
  • Release Notes
Powered by GitBook
On this page
  • Syntax
  • Arguments
  • Example
  • Result
  1. Model
  2. Formula Functions
  3. Math Functions

SUBTRACT

The SUBTRACT function returns the difference of all values in the arguments.

Syntax

SUBTRACT(value1, ...valueN?) - > number

Arguments

Arguments
Datatype
Description

value1

Number/Node reference

The first node or number to be subtracted. This is a required argument.

...valueN?

Number/Node reference

The additional nodes or numbers to be subtracted. These are optional arguments.

Example

Consider the below example where we have Revenue and expenses data. The objective is to calculate the profit.

Periods
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec

Revenue

300

450

367

408

832

671

700

260

572

903

534

671

Sales

180

200

238

174

286

319

265

136

220

260

300

315

Other revenue

120

250

129

234

546

352

435

124

352

643

234

356

Expenses

170

173

360

264

174

184

582

273

503

296

295

484

Rent

50

50

50

50

50

50

50

50

50

50

50

50

Other expenses

120

123

310

214

124

134

532

223

453

246

245

434

To achieve this, the following formula should be written in the [Profit] node.

SUBTRACT([Revenue],[Expenses])

Result

Profit

130

277

7

144

658

487

118

-13

69

607

239

187

PreviousSUMNextPRODUCT

Last updated 1 year ago