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
  • Example
  • Result
  • Explanation
  1. Model
  2. Formula Functions
  3. Range Functions

THIS_SOURCE_KEY

PreviousGETROWVALUENextPERIOD_LOOKUP

Last updated 1 year ago

The THIS.SOURCE_KEY function returns the value of the mentioned source key row from the data series.

Syntax

DS.(SERIES).THIS.SOURCE_KEY

Example

Consider the below scenario where we have the Sales values for a Parent node. The objective is to allocate the Sales value of 2020 to all periods of the child node.

Parent

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

2019

8744503

8599938

8642337

8430046

8537787.6

8635150.9

8751803.7

8530118

8546371.7

8397872.3

8596191.1

8379559.9

2020

8188477

7959189

7470250

7688532

8221765

7188152

7341150

8265013

7718777

8299877

8550181

8544909

2021

1890876

1959373

2204492

1809924

1889838

1676175

1844642

2209590

1702085

1650029

2048406

1879161

To achieve this, the following formula should be written in the Child node:

DS._Sum_of_2020.GETROWVALUE(THIS.PARENT.SOURCE_KEY).GET(CPI)

To know about GETROWVALUE function, click .

Result

Child

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

2019

8188477

7959189

7470250

7688532

8221765

7188152

7341150

8265013

7718777

8299877

8550181

8544909

2020

8188477

7959189

7470250

7688532

8221765

7188152

7341150

8265013

7718777

8299877

8550181

8544909

2021

8188477

7959189

7470250

7688532

8221765

7188152

7341150

8265013

7718777

8299877

8550181

8544909

Explanation

PARENT.SOURCE_KEY allows the node to look into the source key value of the parent as mentioned in the formula and get the sum of 2020 value for all periods.

here