Model: General Ledger - Specifications for Fact Table: GL ANALYSIS MEASURES

On this page you will find the specifications regarding the Model: General Ledger and Fact Table: GL ANALYSIS MEASURES.

Represents all measures related to GL ANALYSIS.

Attributes

Attribute Description (where applicable)

Measures (table to be generated as far as possible)

Aggregation of measures is based on SUM if not explicitly noted.

This section describes the basic measures in the cube. These are either measures defined in the core Information Source, in the model itself or in the ETL process. The columns have the following meaning:

Measure Calculated Y/N Contains Time Intelligence Y/N Definition/Note (where applicable) Aggregation Type Hidden Y/N Tabular Expression
ACTYNActualSUMNSUM('GL ANALYSIS'[ACT_PERIOD_DOM])
ACT (Acc Calendar)YNActual, to be presented by Accounting calendarN IF (HASONEVALUE('ACCOUNTING PERIOD'[Accounting Year]), SUMX('GL ANALYSIS', [ACT_OB_PERIOD_DOM] + [ACT_PERIOD_DOM])) // Uses the HASONEVALUE function to suppress display of totals that sum up multiple years.
ACT CreditYNActual CreditSUMNSUM('GL ANALYSIS'[ACT_PERIOD_CREDIT_DOM])
ACT Credit TransYNActual Credit TransSUMNSUM('GL ANALYSIS'[ACT_PERIOD_CREDIT_CURR])
ACT Credit XR1 (Period Based)YNActual Credit XR1 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code]) ,"@GLAmount",CALCULATE([ACT Credit]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 1'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
ACT Credit XR2 (Period Based)YNActual Credit XR2 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY 2'[Currency Code]) ,"@GLAmount",CALCULATE([ACT Credit]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 2'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
ACT Credit YTD TransYYActual Credit YTD TransSUMNCALCULATE([ACT Credit Trans], DATESYTD('REPORTING PERIOD'[ID])) + CALCULATE(SUM('GL ANALYSIS'[OB_PERIOD_CURR]), DATESYTD('REPORTING PERIOD'[ID]))
ACT DebitYNActual DebitSUMNSUM('GL ANALYSIS'[ACT_PERIOD_DEBET_DOM])
ACT Debit TransYNActual Debit TransSUMNSUM('GL ANALYSIS'[ACT_PERIOD_DEBET_CURR])
ACT Debit XR1 (Period Based)YNActual Debit XR1 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code]) ,"@GLAmount",CALCULATE([ACT Debit]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 1'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
ACT Debit XR2 (Period Based)YNActual Debit XR2 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY 2'[Currency Code]) ,"@GLAmount",CALCULATE([ACT Debit]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 2'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
ACT Debit YTD TransYYActual Debit YTD TransSUMNCALCULATE([ACT Debit Trans], DATESYTD('REPORTING PERIOD'[ID])) + CALCULATE(SUM('GL ANALYSIS'[OB_PERIOD_CURR]), DATESYTD('REPORTING PERIOD'[ID]))
ACT OBYNActual OBSUMNIF(ISBLANK([ACT YTD]) , BLANK() ,([ACT YTD] - [ACT]))
ACT OB (Acc Calendar)YNActual OB, to be presented by Accounting calendarN VAR CurrAccYear = SELECTEDVALUE('ACCOUNTING PERIOD'[Accounting Year]) // Uses the SELECTEDVALUE function to suppress display of totals that sum up multiple years. Var CurrAccPeriod = IF( SELECTEDVALUE('ACCOUNTING PERIOD'[Accounting Period No]) = 0, 1, SELECTEDVALUE('ACCOUNTING PERIOD'[Accounting Period No])) VAR RunningTotal= CALCULATE( [ACT (Acc Calendar)], FILTER(ALL('ACCOUNTING PERIOD'), 'ACCOUNTING PERIOD'[Accounting Year]=CurrAccYear && 'ACCOUNTING PERIOD'[Accounting Period No]< CurrAccPeriod)) RETURN RunningTotal
ACT OB Trans YNActual OB TransSUMNIF(ISBLANK([ACT YTD Trans]) , BLANK() ,([ACT YTD Trans] - [ACT Trans]))
ACT OB XR1 (Period Based)YNActual OB XR1 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), SUMX ( VALUES ( COMPANY[ID] ), [ACT OB]*[Conversion rate XR1])) // ACT OB X-rate (Period Based): [ACT OB] multiplied with the [rate] at each specific period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
ACT OB XR1 (YTD Based)YYActual OB XR1 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) VAR MonthsInPeriod = MAX('REPORTING PERIOD'[Months In Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK() , IF ( CurrPeriod = 1, CALCULATE([ACT OB XR1 (Period Based)]), CALCULATE([ACT YTD XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID], -MonthsInPeriod, MONTH) ) )) // ACT OB X-rate (YTD Based): The YTD value from previous period, part from period 1 in which calculation is OB*rate. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
ACT OB XR2 (Period Based)YNActual OB XR2 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), SUMX ( VALUES ( COMPANY[ID] ), [ACT OB]*[Conversion rate XR2])) // ACT OB X-rate (Period Based): [ACT OB] multiplied with the [rate] at each specific period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
ACT OB XR2 (YTD Based)YYActual OB XR2 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) VAR MonthsInPeriod = MAX('REPORTING PERIOD'[Months In Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK() , IF ( CurrPeriod = 1, CALCULATE([ACT OB XR2 (Period Based)]), CALCULATE([ACT YTD XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID], -MonthsInPeriod, MONTH) ) )) // ACT OB X-rate (YTD Based): The YTD value from previous period, part from period 1 in which calculation is OB*rate. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
ACT PY R12 TransYYActual PY R12 TransSUMN CALCULATE([ACT R12 Trans], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY R12 Trans: This measure displays the last available value if presented for multiple periods, eg by quarter then the value in quarter 1 will be the value from March.
ACT PY R12 XR1 (Period Based)YYActual PY R12 XR1 (Period Based)SUMN CALCULATE([ACT R12 XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY R12 X-rate (Period Based): R12 X-rate from the same period previous year. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
ACT PY R12 XR1 (YTD Based)YYActual PY R12 XR1 (YTD Based)SUMN CALCULATE([ACT R12 XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY R12 X-rate (YTD Based): R12 from the same period previous year.
ACT PY R12 XR2 (Period Based)YYActual PY R12 XR2 (Period Based)SUMN CALCULATE([ACT R12 XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY R12 X-rate (Period Based): R12 X-rate from the same period previous year. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
ACT PY R12 XR2 (YTD Based)YYActual PY R12 XR2 (YTD Based)SUMN CALCULATE([ACT R12 XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY R12 X-rate (YTD Based): R12 from the same period previous year.
ACT PY TransYYActual PY TransSUMNCALCULATE([ACT Trans], DATEADD('REPORTING PERIOD'[ID],-12,month))
ACT PY XR1 (Period Based)YYActual PY XR1 (Period Based)SUMN CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY X-rate (Period Based): ACT X-rate from the same reporting period previous year.
ACT PY XR1 (YTD Based)YYActual PY XR1 (YTD Based)SUMN CALCULATE([ACT XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY X-rate (YTD Based): The value from the same period last year.
ACT PY XR2 (Period Based)YYActual PY XR2 (Period Based)SUMN CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY X-rate (Period Based): ACT X-rate from the same reporting period previous year.
ACT PY XR2 (YTD Based)YYActual PY XR2 (YTD Based)SUMN CALCULATE([ACT XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY X-rate (YTD Based): The value from the same period last year.
ACT PY YTD TransYYActual PY YTD TransSUMNCALCULATE([ACT YTD Trans], DATEADD('REPORTING PERIOD'[ID],-12,month))
ACT PY YTD XR1 (Period Based)YNActual PY YTD XR1 (Period Based)N CALCULATE ( [ACT YTD XR1 (Period Based)], DATEADD ( 'REPORTING PERIOD'[ID], -12, MONTH ) ) // ACT PY YTD X-rate (Period Based): ACT YTD Xrate from the same reporting period previous year.
ACT PY YTD XR1 (YTD Based)YYActual PY YTD XR1 (YTD Based)SUMN CALCULATE([ACT YTD XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY YTD X-rate (YTD Based): The YTD value for the same period last year.
ACT PY YTD XR2 (Period Based)YNActual PY YTD XR2 (Period Based)N CALCULATE ( [ACT YTD XR2 (Period Based)], DATEADD ( 'REPORTING PERIOD'[ID], -12, MONTH ) ) // ACT PY YTD X-rate (Period Based): ACT YTD Xrate from the same reporting period previous year.
ACT PY YTD XR2 (YTD Based)YYActual PY YTD XR2 (YTD Based)SUMN CALCULATE([ACT YTD XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // ACT PY YTD X-rate (YTD Based): The YTD value for the same period last year.
ACT R12 TransYYActual R12 TransSUMN VAR First_Period = CALCULATE(MAX('REPORTING PERIOD'[Reporting Year Period]), DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) VAR Last_Period = MAX ( 'REPORTING PERIOD'[Reporting Year Period] ) RETURN CALCULATE( [ACT Trans], FILTER ( ALL ( 'REPORTING PERIOD' ), 'REPORTING PERIOD'[Reporting Year Period] >= First_Period && 'REPORTING PERIOD'[Reporting Year Period] <= Last_Period ) ) // ACT R12 Trans: This measure displays the last available value if presented for multiple periods, eg by quarter then the value in quater 1 will be the value from March.
ACT R12 XR1 (Period Based)YYActual R12 XR1 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), [ACT XR1 (Period Based)] + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -1, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -2, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -3, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -4, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -5, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -6, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -7, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -8, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -9, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -10, MONTH)) + CALCULATE([ACT XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) ) // ACT R12 X-rate (Period Based): The sum of [ACT XR1 (Period Based)] for the current month and [ACT XR1 (Period Based)] values from each of the previous 11 months. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
ACT R12 XR1 (YTD Based)YYActual R12 XR1 (YTD Based)SUMN SUMX ( VALUES ( COMPANY[ID] ), [ACT R12]*[Conversion rate XR1]) // ACT R12 X-rate (YTD Based): The R12-value multiplied with the rate at the that specific Reporting period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
ACT R12 XR2 (Period Based)YYActual R12 XR2 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), [ACT XR2 (Period Based)] + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -1, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -2, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -3, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -4, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -5, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -6, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -7, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -8, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -9, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -10, MONTH)) + CALCULATE([ACT XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) ) // ACT R12 X-rate (Period Based): The sum of [ACT XR2 (Period Based)] for the current month and [ACT XR2 (Period Based)] values from each of the previous 11 months. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
ACT R12 XR2 (YTD Based)YYActual R12 XR2 (YTD Based)SUMN SUMX ( VALUES ( COMPANY[ID] ), [ACT R12]*[Conversion rate XR2]) // ACT R12 X-rate (YTD Based): The R12-value multiplied with the rate at the that specific Reporting period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
ACT TransYNActual TransSUMNSUM('GL ANALYSIS'[ACT_PERIOD_CURR])
ACT XR1 (Period Based)YNActual XR1 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code]) ,"@GLAmount",CALCULATE([ACT]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 1'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
ACT XR1 (YTD Based)YYActual XR1 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), IF( CurrPeriod = 1, SUMX (VALUES ( COMPANY[ID] ), ([ACT]*[Conversion rate XR1]) ), SUMX (VALUES ( COMPANY[ID] ), ([ACT YTD]*[Conversion rate XR1]) - ([ACT OB]*[Conversion rate PP XR1])) ) ) // ACT X-rate (YTD Based): (ACT YTD X-rate) minus (OB * rate in previous period). Note that OB is the same as the YTD-value in the previous period. // In case no addition of ACT from previous period, this is just the effect of the same YTD value being multiplied with rate in previous period compared with the rate in this period. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level. HasOnValuePeriod is to ensure Blank values.
ACT XR2 (Period Based)YNActual XR2 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY 2'[Currency Code]) ,"@GLAmount",CALCULATE([ACT]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 2'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
ACT XR2 (YTD Based)YYActual XR2 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), IF( CurrPeriod = 1, SUMX (VALUES ( COMPANY[ID] ), ([ACT]*[Conversion rate XR2]) ), SUMX (VALUES ( COMPANY[ID] ), ([ACT YTD]*[Conversion rate XR2]) - ([ACT OB]*[Conversion rate PP XR2])) ) ) // ACT X-rate (YTD Based): (ACT YTD X-rate) minus (OB * rate in previous period). Note that OB is the same as the YTD-value in the previous period. // In case no addition of ACT from previous period, this is just the effect of the same YTD value being multiplied with rate in previous period compared with the rate in this period. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level. HasOnValuePeriod is to ensure Blank values.
ACT YTD (Acc Calendar)YNActual YTD, to be presented by Accounting calendarN VAR CurrentAccPeriodNo = MAX('ACCOUNTING PERIOD'[Accounting Period No]) VAR CurrentAccYear = MAX('ACCOUNTING PERIOD'[Accounting Year]) VAR RunningTotal = CALCULATE([ACT (Acc Calendar)], FILTER(ALL('ACCOUNTING PERIOD'), 'ACCOUNTING PERIOD'[Accounting Year] = CurrentAccYear && 'ACCOUNTING PERIOD'[Accounting Period No] <= CurrentAccPeriodNo)) RETURN IF( HASONEVALUE('ACCOUNTING PERIOD'[Accounting Year]), RunningTotal) // Uses the HASONEVALUE function to suppress display of totals that sum up multiple years.
ACT YTD TransYYActual YTD TransSUMNCALCULATE([ACT Trans], DATESYTD('REPORTING PERIOD'[ID])) + CALCULATE(SUM('GL ANALYSIS'[ACT_OB_PERIOD_CURR]), DATESYTD('REPORTING PERIOD'[ID]))
ACT YTD XR1 (Period Based)YYActual YTD XR1 (Period Based)SUMN CALCULATE ( [ACTOBPeriodZeroXR1], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) + CALCULATE ( [ACT XR1 (Period Based)], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) // ACT YTD X-rate (Period Based): This YTD value includes the sum of both OB and ACT values.
ACT YTD XR1 (YTD Based)YYActual YTD XR1 (YTD Based)SUMN SUMX( VALUES( COMPANY[ID] ), CALCULATE( [ACT YTD] * [Conversion rate XR1] )) // ACT YTD X-rate (YTD Based): The YTD value multiplied with the current rate. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates. // If ever to update this code: Heads up on verifing the results on Quarter and Year level in the multi-company scenario.
ACT YTD XR2 (Period Based)YYActual YTD XR2 (Period Based)SUMN CALCULATE ( [ACTOBPeriodZeroXR2], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) + CALCULATE ( [ACT XR2 (Period Based)], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) // ACT YTD X-rate (Period Based): This YTD value includes the sum of both OB and ACT values.
ACT YTD XR2 (YTD Based)YYActual YTD XR2 (YTD Based)SUMN SUMX( VALUES( COMPANY[ID] ), CALCULATE( [ACT YTD] * [Conversion rate XR2] )) // ACT YTD X-rate (YTD Based): The YTD value multiplied with the current rate. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates. // If ever to update this code: Heads up on verifing the results on Quarter and Year level in the multi-company scenario.
ACTOBPeriodZeroYYActualOBPeriodZeroSUMN //Calulcates the incoming balance related to [ACT], acc period 0, as defined in the underlying data source // The idea is to calculate the same value for all periods VAR UntilDate = MAX('REPORTING PERIOD'[Period Until Date]) VAR LastDatePY = MAX('REPORTING PERIOD'[Max Reporting Date PY]) VAR DiffInDays = DATEDIFF(LastDatePY, UntilDate, DAY) RETURN CALCULATE ( // go back to last data in previous reporting year + 1 [ACT OB], DATEADD('REPORTING PERIOD'[ID],-DiffInDays+1, DAY) )
ACTOBPeriodZeroXR1YYActualOBPeriodZeroXR1SUMN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1] ), VAR RestatedAmount = ADDCOLUMNS ( SUMMARIZE ( 'GL ANALYSIS','REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code] ), "@GLAmount", CALCULATE ( SUM ( 'GL ANALYSIS'[ACT_OB_PERIOD_DOM] ) ), "@XRATE", CALCULATE ( SELECTEDVALUE ( 'X-RATES 1'[PREV_YEAR_LAST_PERIOD_RATE]) ) ) VAR XAmount = SUMX ( RestatedAmount, [@GLAmount] * [@XRATE] ) RETURN XAmount ) // ACTOBPeriodZeroXR1: Calculates the OB X-rate value buy sum all OB-values and multiply with the last rate from previous year. // NOTE: If OB values exists on other periods than the start of the year, then they also is multiplied with the last rate from previous year (not previous period).
ACTOBPeriodZeroXR2YYActualOBPeriodZeroXR2SUMN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2] ), VAR RestatedAmount = ADDCOLUMNS ( SUMMARIZE ( 'GL ANALYSIS','REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code] ), "@GLAmount", CALCULATE ( SUM ( 'GL ANALYSIS'[ACT_OB_PERIOD_DOM] ) ), "@XRATE", CALCULATE ( SELECTEDVALUE ( 'X-RATES 2'[PREV_YEAR_LAST_PERIOD_RATE]) ) ) VAR XAmount = SUMX ( RestatedAmount, [@GLAmount] * [@XRATE] ) RETURN XAmount ) // ACTOBPeriodZeroXR2: Calculates the OB X-rate value buy sum all OB-values and multiply with the last rate from previous year. // NOTE: If OB values exists on other periods than the start of the year, then they also is multiplied with the last rate from previous year (not previous period).
BUDYNBUDSUMNSUM('GL ANALYSIS'[BUD_PERIOD_DOM])
BUD OBYNBUD OBSUMNIF(ISBLANK([BUD YTD]) , BLANK() ,([BUD YTD] - [BUD]))
BUD OB Trans YNBudget OB TransSUMNIF(ISBLANK([BUD YTD Trans]) , BLANK() ,([BUD YTD Trans] - [BUD Trans]))
BUD OB XR1 (Period Based)YNBudget OB XR1 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), SUMX ( VALUES ( COMPANY[ID] ), [BUD OB]*[Conversion rate XR1])) // BUD OB X-rate (Period Based): [BUD OB] multiplied with the [rate] at each specific period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
BUD OB XR1 (YTD Based)YYBudget OB XR1 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) VAR MonthsInPeriod = MAX('REPORTING PERIOD'[Months In Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK() , IF ( CurrPeriod = 1, CALCULATE([BUD OB XR1 (Period Based)]), CALCULATE([BUD YTD XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID], -MonthsInPeriod, MONTH) ) )) // BUD OB X-rate (YTD Based): The YTD value from previous period, part from period 1 in which calculation is OB*rate. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
BUD OB XR2 (Period Based)YNBudget OB XR2 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), SUMX ( VALUES ( COMPANY[ID] ), [BUD OB]*[Conversion rate XR2])) // BUD OB X-rate (Period Based): [BUD OB] multiplied with the [rate] at each specific period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
BUD OB XR2 (YTD Based)YYBudget OB XR2 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) VAR MonthsInPeriod = MAX('REPORTING PERIOD'[Months In Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK() , IF ( CurrPeriod = 1, CALCULATE([BUD OB XR2 (Period Based)]), CALCULATE([BUD YTD XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID], -MonthsInPeriod, MONTH) ) )) // BUD OB X-rate (YTD Based): The YTD value from previous period, part from period 1 in which calculation is OB*rate. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
BUD PY R12 TransYYBudget PY R12 TransSUMN CALCULATE([BUD R12 Trans], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY R12 Trans: This measure displays the last available value if presented for multiple periods, eg by quarter then the value in quarter 1 will be the value from March.
BUD PY R12 XR1 (Period Based)YYBudget PY R12 XR1 (Period Based)SUMN CALCULATE([BUD R12 XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY R12 X-rate (Period Based): R12 X-rate from the same period previous year. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
BUD PY R12 XR1 (YTD Based)YYBudget PY R12 XR1 (YTD Based)SUMN CALCULATE([BUD R12 XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY R12 X-rate (YTD Based): R12 from the same period previous year.
BUD PY R12 XR2 (Period Based)YYBudget PY R12 XR2 (Period Based)SUMN CALCULATE([BUD R12 XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY R12 X-rate (Period Based): R12 X-rate from the same period previous year. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
BUD PY R12 XR2 (YTD Based)YYBudget PY R12 XR2 (YTD Based)SUMN CALCULATE([BUD R12 XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY R12 X-rate (YTD Based): R12 from the same period previous year.
BUD PY TransYYBudget PY TransSUMNCALCULATE([BUD Trans], DATEADD('REPORTING PERIOD'[ID],-12,month))
BUD PY XR1 (Period Based)YYBudget PY XR1 (Period Based)SUMN CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY X-rate (Period Based): BUD X-rate from the same reporting period previous year.
BUD PY XR1 (YTD Based)YYBudget PY XR1 (YTD Based)SUMN CALCULATE([BUD XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY X-rate (YTD Based): The value from the same period last year.
BUD PY XR2 (Period Based)YYBudget PY XR2 (Period Based)SUMN CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY X-rate (Period Based): BUD X-rate from the same reporting period previous year.
BUD PY XR2 (YTD Based)YYBudget PY XR2 (YTD Based)SUMN CALCULATE([BUD XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY X-rate (YTD Based): The value from the same period last year.
BUD PY YTD TransYYBudget PY YTD TransSUMNCALCULATE([BUD YTD Trans], DATEADD('REPORTING PERIOD'[ID],-12,month))
BUD PY YTD XR1 (Period Based)YYBudget PY YTD XR1 (Period Based)N CALCULATE ( [BUD YTD XR1 (Period Based)], DATEADD ( 'REPORTING PERIOD'[ID], -12, MONTH ) ) // BUD PY YTD X-rate (Period Based): BUD YTD Xrate from the same reporting period previous year.
BUD PY YTD XR1 (YTD Based)YYBudget PY YTD XR1 (YTD Based)SUMN CALCULATE([BUD YTD XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY YTD X-rate (YTD Based): The YTD value for the same period last year.
BUD PY YTD XR2 (Period Based)YYBudget PY YTD XR2 (Period Based)N CALCULATE ( [BUD YTD XR2 (Period Based)], DATEADD ( 'REPORTING PERIOD'[ID], -12, MONTH ) ) // BUD PY YTD X-rate (Period Based): BUD YTD Xrate from the same reporting period previous year.
BUD PY YTD XR2 (YTD Based)YYBudget PY YTD XR2 (YTD Based)SUMN CALCULATE([BUD YTD XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID],-12,month)) // BUD PY YTD X-rate (YTD Based): The YTD value for the same period last year.
BUD R12 TransYYBudget R12 TransSUMN VAR First_Period = CALCULATE(MAX('REPORTING PERIOD'[Reporting Year Period]), DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) VAR Last_Period = MAX ( 'REPORTING PERIOD'[Reporting Year Period] ) RETURN CALCULATE ( [BUD Trans], FILTER ( ALL ( 'REPORTING PERIOD' ), 'REPORTING PERIOD'[Reporting Year Period] >= First_Period && 'REPORTING PERIOD'[Reporting Year Period] <= Last_Period ) ) // BUD R12 Trans: This measure displays the last available value if presented for multiple periods, eg by quarter then the value in quater 1 will be the value from March.
BUD R12 XR1 (Period Based)YYBudget R12 XR1 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), [BUD XR1 (Period Based)] + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -1, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -2, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -3, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -4, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -5, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -6, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -7, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -8, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -9, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -10, MONTH)) + CALCULATE([BUD XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) ) // BUD R12 X-rate (Period Based): The sum of [BUD XR1 (Period Based)] for the current month and [BUD XR1 (Period Based)] values from each of the previous 11 months. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
BUD R12 XR1 (YTD Based)YYBudget R12 XR1 (YTD Based)SUMN SUMX ( VALUES ( COMPANY[ID] ), [BUD R12]*[Conversion rate XR1]) // BUD R12 X-rate (YTD Based): The R12-value multiplied with the rate at the that specific Reporting period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
BUD R12 XR2 (Period Based)YYBudget R12 XR2 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), [BUD XR2 (Period Based)] + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -1, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -2, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -3, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -4, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -5, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -6, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -7, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -8, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -9, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -10, MONTH)) + CALCULATE([BUD XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) ) // BUD R12 X-rate (Period Based): The sum of [BUD XR2 (Period Based)] for the current month and [BUD XR2 (Period Based)] values from each of the previous 11 months. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
BUD R12 XR2 (YTD Based)YYBudget R12 XR2 (YTD Based)SUMN SUMX ( VALUES ( COMPANY[ID] ), [BUD R12]*[Conversion rate XR2]) // BUD R12 X-rate (YTD Based): The R12-value multiplied with the rate at the that specific Reporting period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
BUD TransYNBUD TransSUMNSUM('GL ANALYSIS'[BUD_PERIOD_CURR])
BUD XR1 (Period Based)YNBudget XR1 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code]) ,"@GLAmount",CALCULATE([BUD]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 1'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
BUD XR1 (YTD Based)YYBudget XR1 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), IF( CurrPeriod = 1, SUMX (VALUES ( COMPANY[ID] ), ([BUD]*[Conversion rate XR1]) ), SUMX (VALUES ( COMPANY[ID] ), ([BUD YTD]*[Conversion rate XR1]) - ([BUD OB]*[Conversion rate PP XR1])) ) ) // BUD X-rate (YTD Based): (BUD YTD X-rate) minus (OB * rate in previous period). Note that OB is the same as the YTD-value in the previous period. // In case no addition of BUD from previous period, this is just the effect of the same YTD value being multiplied with rate in previous period compared with the rate in this period. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level. HasOnValuePeriod is to ensure Blank values.
BUD XR2 (Period Based)YNBudget XR2 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY 2'[Currency Code]) ,"@GLAmount",CALCULATE([BUD]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 2'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
BUD XR2 (YTD Based)YYBudget XR2 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), IF( CurrPeriod = 1, SUMX (VALUES ( COMPANY[ID] ), ([BUD]*[Conversion rate XR2]) ), SUMX (VALUES ( COMPANY[ID] ), ([BUD YTD]*[Conversion rate XR2]) - ([BUD OB]*[Conversion rate PP XR2])) ) ) // BUD X-rate (YTD Based): (BUD YTD X-rate) minus (OB * rate in previous period). Note that OB is the same as the YTD-value in the previous period. // In case no addition of BUD from previous period, this is just the effect of the same YTD value being multiplied with rate in previous period compared with the rate in this period. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level. HasOnValuePeriod is to ensure Blank values.
BUD YTD TransYYBudget YTD TransSUMNCALCULATE([BUD Trans], DATESYTD('REPORTING PERIOD'[ID])) + CALCULATE(SUM('GL ANALYSIS'[BUD_OB_PERIOD_CURR]), DATESYTD('REPORTING PERIOD'[ID]))
BUD YTD XR1 (Period Based)YYBudget YTD XR1 (Period Based)SUMN CALCULATE ( [BUDOBPeriodZeroXR1], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) + CALCULATE ( [BUD XR1 (Period Based)], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) // BUD YTD X-rate (Period Based): This YTD value includes the sum of both OB and BUD values.
BUD YTD XR1 (YTD Based)YYBudget YTD XR1 (YTD Based)SUMN SUMX( VALUES( COMPANY[ID] ), CALCULATE( [BUD YTD] * [Conversion rate XR1] )) // BUD YTD X-rate (YTD Based): The YTD value multiplied with the current rate. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates. // If ever to update this code: Heads up on verifing the results on Quarter and Year level in the multi-company scenario.
BUD YTD XR2 (Period Based)YYBudget YTD XR2 (Period Based)SUMN CALCULATE ( [BUDOBPeriodZeroXR2], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) + CALCULATE ( [BUD XR2 (Period Based)], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) // BUD YTD X-rate (Period Based): This YTD value includes the sum of both OB and BUD values.
BUD YTD XR2 (YTD Based)YYBudget YTD XR2 (YTD Based)SUMN SUMX( VALUES( COMPANY[ID] ), CALCULATE( [BUD YTD] * [Conversion rate XR2] )) // BUD YTD X-rate (YTD Based): The YTD value multiplied with the current rate. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates. // If ever to update this code: Heads up on verifing the results on Quarter and Year level in the multi-company scenario.
BUDOBPeriodZeroYYBudgetOBPeriodZeroSUMN //Calulcates the incoming balance related to [BUD], acc period 0, as defined in the underlying data source // The idea is to calculate the same value for all periods VAR UntilDate = MAX('REPORTING PERIOD'[Period Until Date]) VAR LastDatePY = MAX('REPORTING PERIOD'[Max Reporting Date PY]) VAR DiffInDays = DATEDIFF(LastDatePY, UntilDate, DAY) RETURN CALCULATE ( // go back to last data in previous reporting year + 1 [BUD OB], DATEADD('REPORTING PERIOD'[ID],-DiffInDays+1, DAY) )
BUDOBPeriodZeroXR1YYBudgetOBPeriodZeroXR1SUMN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1] ), VAR RestatedAmount = ADDCOLUMNS ( SUMMARIZE ( 'GL ANALYSIS','REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code] ), "@GLAmount", CALCULATE ( SUM ( 'GL ANALYSIS'[BUD_OB_PERIOD_DOM] ) ), "@XRATE", CALCULATE ( SELECTEDVALUE ( 'X-RATES 1'[PREV_YEAR_LAST_PERIOD_RATE]) ) ) VAR XAmount = SUMX ( RestatedAmount, [@GLAmount] * [@XRATE] ) RETURN XAmount ) // BUDOBPeriodZeroXR1: Calculates the OB X-rate value buy sum all OB-values and multiply with the last rate from previous year. // NOTE: If OB values exists on other periods than the start of the year, then they also is multiplied with the last rate from previous year (not previous period).
BUDOBPeriodZeroXR2YYBudgetOBPeriodZeroXR2SUMN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2] ), VAR RestatedAmount = ADDCOLUMNS ( SUMMARIZE ( 'GL ANALYSIS','REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code] ), "@GLAmount", CALCULATE ( SUM ( 'GL ANALYSIS'[BUD_OB_PERIOD_DOM] ) ), "@XRATE", CALCULATE ( SELECTEDVALUE ( 'X-RATES 2'[PREV_YEAR_LAST_PERIOD_RATE]) ) ) VAR XAmount = SUMX ( RestatedAmount, [@GLAmount] * [@XRATE] ) RETURN XAmount ) // BUDOBPeriodZeroXR2: Calculates the OB X-rate value buy sum all OB-values and multiply with the last rate from previous year. // NOTE: If OB values exists on other periods than the start of the year, then they also is multiplied with the last rate from previous year (not previous period).
CFCYNCFCSUMNSUM('GL ANALYSIS'[CFC_PERIOD_DOM])
CFC OBYNCFC OBSUMNIF(ISBLANK([CFC YTD]) , BLANK() ,([CFC YTD] - [CFC]))
CFC OB TransYNCurrent Forecast OB TransSUMNIF(ISBLANK([CFC YTD Trans]) , BLANK() ,([CFC YTD Trans] - [CFC Trans]))
CFC OB XR1 (Period Based)YNCurrent Forecast OB XR1 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), SUMX ( VALUES ( COMPANY[ID] ), [CFC OB]*[Conversion rate XR1])) // CFC OB X-rate (Period Based): [CFC OB] multiplied with the [rate] at each specific period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
CFC OB XR1 (YTD Based)YYCurrent Forecast OB XR1 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) VAR MonthsInPeriod = MAX('REPORTING PERIOD'[Months In Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK() , IF ( CurrPeriod = 1, CALCULATE([CFC OB XR1 (Period Based)]), CALCULATE([CFC YTD XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID], -MonthsInPeriod, MONTH) ) )) // CFC OB X-rate (YTD Based): The YTD value from previous period, part from period 1 in which calculation is OB*rate. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
CFC OB XR2 (Period Based)YNCurrent Forecast OB XR2 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), SUMX ( VALUES ( COMPANY[ID] ), [CFC OB]*[Conversion rate XR2])) // CFC OB X-rate (Period Based): [CFC OB] multiplied with the [rate] at each specific period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
CFC OB XR2 (YTD Based)YYCurrent Forecast OB XR2 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) VAR MonthsInPeriod = MAX('REPORTING PERIOD'[Months In Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK() , IF ( CurrPeriod = 1, CALCULATE([CFC OB XR2 (Period Based)]), CALCULATE([CFC YTD XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID], -MonthsInPeriod, MONTH) ) )) // CFC OB X-rate (YTD Based): The YTD value from previous period, part from period 1 in which calculation is OB*rate. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
CFC R12 TransYYCurrent Forecast R12 TransSUMN VAR First_Period = CALCULATE(MAX('REPORTING PERIOD'[Reporting Year Period]), DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) VAR Last_Period = MAX ( 'REPORTING PERIOD'[Reporting Year Period] ) RETURN CALCULATE ( [CFC Trans], FILTER ( ALL ( 'REPORTING PERIOD' ), 'REPORTING PERIOD'[Reporting Year Period] >= First_Period && 'REPORTING PERIOD'[Reporting Year Period] <= Last_Period ) ) // CFC R12 Trans: This measure displays the last available value if presented for multiple periods, eg by quarter then the value in quater 1 will be the value from March.
CFC R12 XR1 (Period Based)YYCurrent Forecast R12 XR1 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), [CFC XR1 (Period Based)] + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -1, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -2, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -3, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -4, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -5, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -6, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -7, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -8, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -9, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -10, MONTH)) + CALCULATE([CFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) ) // CFC R12 X-rate (Period Based): The sum of [CFC XR1 (Period Based)] for the current month and [CFC XR1 (Period Based)] values from each of the previous 11 months. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
CFC R12 XR1 (YTD Based)YYCurrent Forecast R12 XR1 (YTD Based)SUMN SUMX ( VALUES ( COMPANY[ID] ), [CFC R12]*[Conversion rate XR1]) // CFC R12 X-rate (YTD Based): The R12-value multiplied with the rate at the that specific Reporting period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
CFC R12 XR2 (Period Based)YYCurrent Forecast R12 XR2 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), [CFC XR2 (Period Based)] + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -1, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -2, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -3, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -4, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -5, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -6, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -7, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -8, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -9, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -10, MONTH)) + CALCULATE([CFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) ) // CFC R12 X-rate (Period Based): The sum of [CFC XR2 (Period Based)] for the current month and [CFC XR2 (Period Based)] values from each of the previous 11 months. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
CFC R12 XR2 (YTD Based)YYCurrent Forecast R12 XR2 (YTD Based)SUMN SUMX ( VALUES ( COMPANY[ID] ), [CFC R12]*[Conversion rate XR2]) // CFC R12 X-rate (YTD Based): The R12-value multiplied with the rate at the that specific Reporting period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
CFC TransYNCFC TransSUMNSUM('GL ANALYSIS'[CFC_PERIOD_CURR])
CFC XR1 (Period Based)YNCurrent Forecast XR1 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code]) ,"@GLAmount",CALCULATE([CFC]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 1'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
CFC XR1 (YTD Based)YYCurrent Forecast XR1 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), IF( CurrPeriod = 1, SUMX (VALUES ( COMPANY[ID] ), ([CFC]*[Conversion rate XR1]) ), SUMX (VALUES ( COMPANY[ID] ), ([CFC YTD]*[Conversion rate XR1]) - ([CFC OB]*[Conversion rate PP XR1])) ) ) // CFC X-rate (YTD Based): (CFC YTD X-rate) minus (OB * rate in previous period). Note that OB is the same as the YTD-value in the previous period. // In case no addition of CFC from previous period, this is just the effect of the same YTD value being multiplied with rate in previous period compared with the rate in this period. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level. HasOnValuePeriod is to ensure Blank values.
CFC XR2 (Period Based)YNCurrent Forecast XR2 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY 2'[Currency Code]) ,"@GLAmount",CALCULATE([CFC]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 2'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
CFC XR2 (YTD Based)YYCurrent Forecast XR2 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), IF( CurrPeriod = 1, SUMX (VALUES ( COMPANY[ID] ), ([CFC]*[Conversion rate XR2]) ), SUMX (VALUES ( COMPANY[ID] ), ([CFC YTD]*[Conversion rate XR2]) - ([CFC OB]*[Conversion rate PP XR2])) ) ) // CFC X-rate (YTD Based): (CFC YTD X-rate) minus (OB * rate in previous period). Note that OB is the same as the YTD-value in the previous period. // In case no addition of CFC from previous period, this is just the effect of the same YTD value being multiplied with rate in previous period compared with the rate in this period. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level. HasOnValuePeriod is to ensure Blank values.
CFC YTD TransYYCurrent Forecast YTD TransSUMNCALCULATE([CFC Trans], DATESYTD('REPORTING PERIOD'[ID])) + CALCULATE(SUM('GL ANALYSIS'[CFC_OB_PERIOD_CURR]), DATESYTD('REPORTING PERIOD'[ID]))
CFC YTD XR1 (Period Based)YYCurrent Forecast YTD XR1 (Period Based)SUMN CALCULATE ( [CFCOBPeriodZeroXR1], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) + CALCULATE ( [CFC XR1 (Period Based)], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) // CFC YTD X-rate (Period Based): This YTD value includes the sum of both OB and CFC values.
CFC YTD XR1 (YTD Based)YYCurrent Forecast YTD XR1 (YTD Based)SUMN SUMX( VALUES( COMPANY[ID] ), CALCULATE( [CFC YTD] * [Conversion rate XR1] )) // CFC YTD X-rate (YTD Based): The YTD value multiplied with the current rate. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates. // If ever to update this code: Heads up on verifing the results on Quarter and Year level in the multi-company scenario.
CFC YTD XR2 (Period Based)YYCurrent Forecast YTD XR2 (Period Based)SUMN CALCULATE ( [CFCOBPeriodZeroXR2], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) + CALCULATE ( [CFC XR2 (Period Based)], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) // CFC YTD X-rate (Period Based): This YTD value includes the sum of both OB and CFC values.
CFC YTD XR2 (YTD Based)YYCurrent Forecast YTD XR2 (YTD Based)SUMN SUMX( VALUES( COMPANY[ID] ), CALCULATE( [CFC YTD] * [Conversion rate XR2] )) // CFC YTD X-rate (YTD Based): The YTD value multiplied with the current rate. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates. // If ever to update this code: Heads up on verifing the results on Quarter and Year level in the multi-company scenario.
CFCOBPeriodZeroYYCurrent ForecastOBPeriodZeroSUMN //Calulcates the incoming balance related to [CFC], acc period 0, as defined in the underlying data source // The idea is to calculate the same value for all periods VAR UntilDate = MAX('REPORTING PERIOD'[Period Until Date]) VAR LastDatePY = MAX('REPORTING PERIOD'[Max Reporting Date PY]) VAR DiffInDays = DATEDIFF(LastDatePY, UntilDate, DAY) RETURN CALCULATE ( // go back to last data in previous reporting year + 1 [CFC OB], DATEADD('REPORTING PERIOD'[ID],-DiffInDays+1, DAY) )
CFCOBPeriodZeroXR1YYCurrent ForecastOBPeriodZeroXR1SUMN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1] ), VAR RestatedAmount = ADDCOLUMNS ( SUMMARIZE ( 'GL ANALYSIS','REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code] ), "@GLAmount", CALCULATE ( SUM ( 'GL ANALYSIS'[CFC_OB_PERIOD_DOM] ) ), "@XRATE", CALCULATE ( SELECTEDVALUE ( 'X-RATES 1'[PREV_YEAR_LAST_PERIOD_RATE]) ) ) VAR XAmount = SUMX ( RestatedAmount, [@GLAmount] * [@XRATE] ) RETURN XAmount ) // CFCOBPeriodZeroXR1: Calculates the OB X-rate value buy sum all OB-values and multiply with the last rate from previous year. // NOTE: If OB values exists on other periods than the start of the year, then they also is multiplied with the last rate from previous year (not previous period).
CFCOBPeriodZeroXR2YYCurrent ForecastOBPeriodZeroXR2SUMN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2] ), VAR RestatedAmount = ADDCOLUMNS ( SUMMARIZE ( 'GL ANALYSIS','REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code] ), "@GLAmount", CALCULATE ( SUM ( 'GL ANALYSIS'[CFC_OB_PERIOD_DOM] ) ), "@XRATE", CALCULATE ( SELECTEDVALUE ( 'X-RATES 2'[PREV_YEAR_LAST_PERIOD_RATE]) ) ) VAR XAmount = SUMX ( RestatedAmount, [@GLAmount] * [@XRATE] ) RETURN XAmount ) // CFCOBPeriodZeroXR2: Calculates the OB X-rate value buy sum all OB-values and multiply with the last rate from previous year. // NOTE: If OB values exists on other periods than the start of the year, then they also is multiplied with the last rate from previous year (not previous period).
Conversion rate PP XR1YYCurrency rate previous period - for XR1N/AN CALCULATE([Conversion rate XR1], DATEADD('REPORTING PERIOD'[ID],-1,month)) // Conversion rate XR1 PP: Rate for the previous reporting period. // NOTE: This measure requires that companies never change their "company_base_currency"-value.
Conversion rate PP XR2YYCurrency rate previous period - for XR2N/AN CALCULATE([Conversion rate XR2], DATEADD('REPORTING PERIOD'[ID],-1,month)) // Conversion rate XR2 PP: Rate for the previous reporting period. // NOTE: This measure requires that companies never change their "company_base_currency"-value.
Conversion rate XR1YYCurrency rate current period - for XR1N/AN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1] ), VAR SelectedXrateType = SELECTEDVALUE('RATE TYPE X-RATE 1'[Rate Type Code X-Rate 1]) VAR SelectedToCurrency = SELECTEDVALUE ('CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1] ) VAR selected_company = SELECTEDVALUE(COMPANY[ID]) VAR base_currency = CALCULATE( SELECTEDVALUE('GL ANALYSIS'[company_base_currency]), COMPANY[ID] = selected_company, ALL('REPORTING PERIOD') ) VAR LastReportingPeriodWithRate = CALCULATE( MAX('REPORTING PERIOD'[ID]), FILTER( 'X-RATES 1', 'X-RATES 1'[CURRENCY_RATE_TYPE_KEY] = SelectedXrateType && 'X-RATES 1'[TOCURRENCY] = SelectedToCurrency && 'X-RATES 1'[FROMCURRENCY] = base_currency && NOT(ISBLANK('X-RATES 1'[CURRENCYRATE])) ) ) VAR ConversionRate = CALCULATE( MAX('X-RATES 1'[CURRENCYRATE]), 'X-RATES 1'[CURRENCY_RATE_TYPE_KEY] = SelectedXrateType, 'X-RATES 1'[TOCURRENCY] = SelectedToCurrency, 'X-RATES 1'[FROMCURRENCY] = base_currency, 'REPORTING PERIOD'[ID] = LastReportingPeriodWithRate ) RETURN ConversionRate ) // Conversion rate XR1: Rate for the current reporting period. // NOTE: This measure requires that companies never change their "company_base_currency"-value.
Conversion rate XR2YYCurrency rate current period - for XR2N/AN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2] ), VAR SelectedXrateType = SELECTEDVALUE('RATE TYPE X-RATE 2'[Rate Type Code X-Rate 2]) VAR SelectedToCurrency = SELECTEDVALUE ('CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2] ) VAR selected_company = SELECTEDVALUE(COMPANY[ID]) VAR base_currency = CALCULATE( SELECTEDVALUE('GL ANALYSIS'[company_base_currency]), COMPANY[ID] = selected_company, ALL('REPORTING PERIOD') ) VAR LastReportingPeriodWithRate = CALCULATE( MAX('REPORTING PERIOD'[ID]), FILTER( 'X-RATES 2', 'X-RATES 2'[CURRENCY_RATE_TYPE_KEY] = SelectedXrateType && 'X-RATES 2'[TOCURRENCY] = SelectedToCurrency && 'X-RATES 2'[FROMCURRENCY] = base_currency && NOT(ISBLANK('X-RATES 2'[CURRENCYRATE])) ) ) VAR ConversionRate = CALCULATE( MAX('X-RATES 2'[CURRENCYRATE]), 'X-RATES 2'[CURRENCY_RATE_TYPE_KEY] = SelectedXrateType, 'X-RATES 2'[TOCURRENCY] = SelectedToCurrency, 'X-RATES 2'[FROMCURRENCY] = base_currency, 'REPORTING PERIOD'[ID] = LastReportingPeriodWithRate ) RETURN ConversionRate ) // Conversion rate XR2: Rate for the current reporting period. // NOTE: This measure requires that companies never change their "company_base_currency"-value.
NFCYNNFCSUMNSUM('GL ANALYSIS'[NFC_PERIOD_DOM])
NFC OBYNNFC OBSUMNIF(ISBLANK([NFC YTD]) , BLANK() ,([NFC YTD] - [NFC]))
NFC OB TransYNNext Forecast OB TransSUMNIF(ISBLANK([NFC YTD Trans]) , BLANK() ,([NFC YTD Trans] - [NFC Trans]))
NFC OB XR1 (Period Based)YNNext Forecast OB XR1 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), SUMX ( VALUES ( COMPANY[ID] ), [NFC OB]*[Conversion rate XR1])) // NFC OB X-rate (Period Based): [NFC OB] multiplied with the [rate] at each specific period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
NFC OB XR1 (YTD Based)YYNext Forecast OB XR1 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) VAR MonthsInPeriod = MAX('REPORTING PERIOD'[Months In Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK() , IF ( CurrPeriod = 1, CALCULATE([NFC OB XR1 (Period Based)]), CALCULATE([NFC YTD XR1 (YTD Based)], DATEADD('REPORTING PERIOD'[ID], -MonthsInPeriod, MONTH) ) )) // NFC OB X-rate (YTD Based): The YTD value from previous period, part from period 1 in which calculation is OB*rate. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
NFC OB XR2 (Period Based)YNNext Forecast OB XR2 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), SUMX ( VALUES ( COMPANY[ID] ), [NFC OB]*[Conversion rate XR2])) // NFC OB X-rate (Period Based): [NFC OB] multiplied with the [rate] at each specific period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
NFC OB XR2 (YTD Based)YYNext Forecast OB XR2 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) VAR MonthsInPeriod = MAX('REPORTING PERIOD'[Months In Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK() , IF ( CurrPeriod = 1, CALCULATE([NFC OB XR2 (Period Based)]), CALCULATE([NFC YTD XR2 (YTD Based)], DATEADD('REPORTING PERIOD'[ID], -MonthsInPeriod, MONTH) ) )) // NFC OB X-rate (YTD Based): The YTD value from previous period, part from period 1 in which calculation is OB*rate. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
NFC R12 TransYYNext Forecast R12 TransSUMN VAR First_Period = CALCULATE(MAX('REPORTING PERIOD'[Reporting Year Period]), DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) VAR Last_Period = MAX ( 'REPORTING PERIOD'[Reporting Year Period] ) RETURN CALCULATE ( [NFC Trans], FILTER ( ALL ( 'REPORTING PERIOD' ), 'REPORTING PERIOD'[Reporting Year Period] >= First_Period && 'REPORTING PERIOD'[Reporting Year Period] <= Last_Period ) ) // NFC R12 Trans: This measure displays the last available value if presented for multiple periods, eg by quarter then the value in quater 1 will be the value from March.
NFC R12 XR1 (Period Based)YYNext Forecast R12 XR1 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), [NFC XR1 (Period Based)] + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -1, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -2, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -3, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -4, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -5, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -6, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -7, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -8, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -9, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -10, MONTH)) + CALCULATE([NFC XR1 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) ) // NFC R12 X-rate (Period Based): The sum of [NFC XR1 (Period Based)] for the current month and [NFC XR1 (Period Based)] values from each of the previous 11 months. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
NFC R12 XR1 (YTD Based)YYNext Forecast R12 XR1 (YTD Based)SUMN SUMX ( VALUES ( COMPANY[ID] ), [NFC R12]*[Conversion rate XR1]) // NFC R12 X-rate (YTD Based): The R12-value multiplied with the rate at the that specific Reporting period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
NFC R12 XR2 (Period Based)YYNext Forecast R12 XR2 (Period Based)SUMN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), [NFC XR2 (Period Based)] + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -1, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -2, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -3, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -4, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -5, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -6, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -7, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -8, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -9, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -10, MONTH)) + CALCULATE([NFC XR2 (Period Based)], DATEADD('REPORTING PERIOD'[ID], -11, MONTH)) ) // NFC R12 X-rate (Period Based): The sum of [NFC XR2 (Period Based)] for the current month and [NFC XR2 (Period Based)] values from each of the previous 11 months. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level.
NFC R12 XR2 (YTD Based)YYNext Forecast R12 XR2 (YTD Based)SUMN SUMX ( VALUES ( COMPANY[ID] ), [NFC R12]*[Conversion rate XR2]) // NFC R12 X-rate (YTD Based): The R12-value multiplied with the rate at the that specific Reporting period. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates.
NFC TransYNNFC TransSUMNSUM('GL ANALYSIS'[NFC_PERIOD_CURR])
NFC XR1 (Period Based)YNNext Forecast XR1 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code]) ,"@GLAmount",CALCULATE([NFC]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 1'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
NFC XR1 (YTD Based)YYNext Forecast XR1 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), IF( CurrPeriod = 1, SUMX (VALUES ( COMPANY[ID] ), ([NFC]*[Conversion rate XR1]) ), SUMX (VALUES ( COMPANY[ID] ), ([NFC YTD]*[Conversion rate XR1]) - ([NFC OB]*[Conversion rate PP XR1])) ) ) // NFC X-rate (YTD Based): (NFC YTD X-rate) minus (OB * rate in previous period). Note that OB is the same as the YTD-value in the previous period. // In case no addition of NFC from previous period, this is just the effect of the same YTD value being multiplied with rate in previous period compared with the rate in this period. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level. HasOnValuePeriod is to ensure Blank values.
NFC XR2 (Period Based)YNNext Forecast XR2 (Period Based)SUMN IF(HASONEVALUE('CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2]), VAR RestatedAmount = ADDCOLUMNS( SUMMARIZE('GL ANALYSIS' ,'REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY 2'[Currency Code]) ,"@GLAmount",CALCULATE([NFC]) ,"@XRates",CALCULATE(SELECTEDVALUE('X-RATES 2'[CURRENCYRATE])) ) VAR XAmount = SUMX(RestatedAmount, [@GLAmount] * [@XRates]) RETURN XAmount )
NFC XR2 (YTD Based)YYNext Forecast XR2 (YTD Based)SUMN VAR CurrPeriod = MAX('REPORTING PERIOD'[Reporting Period]) RETURN IF('GL ANALYSIS MEASURES'[HasOneValuePeriod] = FALSE(), BLANK(), IF( CurrPeriod = 1, SUMX (VALUES ( COMPANY[ID] ), ([NFC]*[Conversion rate XR2]) ), SUMX (VALUES ( COMPANY[ID] ), ([NFC YTD]*[Conversion rate XR2]) - ([NFC OB]*[Conversion rate PP XR2])) ) ) // NFC X-rate (YTD Based): (NFC YTD X-rate) minus (OB * rate in previous period). Note that OB is the same as the YTD-value in the previous period. // In case no addition of NFC from previous period, this is just the effect of the same YTD value being multiplied with rate in previous period compared with the rate in this period. // NOTE: This measure can only to be presented on Reporting Period level. Can not be used on Quarter, Half year or Year level. HasOnValuePeriod is to ensure Blank values.
NFC YTD TransYYNext Forecast YTD TransSUMNCALCULATE([NFC Trans], DATESYTD('REPORTING PERIOD'[ID])) + CALCULATE(SUM('GL ANALYSIS'[NFC_OB_PERIOD_CURR]), DATESYTD('REPORTING PERIOD'[ID]))
NFC YTD XR1 (Period Based)YYNext Forecast YTD XR1 (Period Based)SUMN CALCULATE ( [NFCOBPeriodZeroXR1], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) + CALCULATE ( [NFC XR1 (Period Based)], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) // NFC YTD X-rate (Period Based): This YTD value includes the sum of both OB and NFC values.
NFC YTD XR1 (YTD Based)YYNext Forecast YTD XR1 (YTD Based)SUMN SUMX( VALUES( COMPANY[ID] ), CALCULATE( [NFC YTD] * [Conversion rate XR1] )) // NFC YTD X-rate (YTD Based): The YTD value multiplied with the current rate. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates. // If ever to update this code: Heads up on verifing the results on Quarter and Year level in the multi-company scenario.
NFC YTD XR2 (Period Based)YYNext Forecast YTD XR2 (Period Based)SUMN CALCULATE ( [NFCOBPeriodZeroXR2], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) + CALCULATE ( [NFC XR2 (Period Based)], DATESYTD ( 'REPORTING PERIOD'[ID] ) ) // NFC YTD X-rate (Period Based): This YTD value includes the sum of both OB and NFC values.
NFC YTD XR2 (YTD Based)YYNext Forecast YTD XR2 (YTD Based)SUMN SUMX( VALUES( COMPANY[ID] ), CALCULATE( [NFC YTD] * [Conversion rate XR2] )) // NFC YTD X-rate (YTD Based): The YTD value multiplied with the current rate. // VALUES-statement to handle the multi-company scenario where companies have different conversion rates. // If ever to update this code: Heads up on verifing the results on Quarter and Year level in the multi-company scenario.
NFCOBPeriodZeroYYNext ForecastOBPeriodZeroSUMN //Calulcates the incoming balance related to [NFC], acc period 0, as defined in the underlying data source // The idea is to calculate the same value for all periods VAR UntilDate = MAX('REPORTING PERIOD'[Period Until Date]) VAR LastDatePY = MAX('REPORTING PERIOD'[Max Reporting Date PY]) VAR DiffInDays = DATEDIFF(LastDatePY, UntilDate, DAY) RETURN CALCULATE ( // go back to last data in previous reporting year + 1 [NFC OB], DATEADD('REPORTING PERIOD'[ID],-DiffInDays+1, DAY) )
NFCOBPeriodZeroXR1YYNext ForecastOBPeriodZeroXR1SUMN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 1'[Currency Code X-Rate 1] ), VAR RestatedAmount = ADDCOLUMNS ( SUMMARIZE ( 'GL ANALYSIS','REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code] ), "@GLAmount", CALCULATE ( SUM ( 'GL ANALYSIS'[NFC_OB_PERIOD_DOM] ) ), "@XRATE", CALCULATE ( SELECTEDVALUE ( 'X-RATES 1'[PREV_YEAR_LAST_PERIOD_RATE]) ) ) VAR XAmount = SUMX ( RestatedAmount, [@GLAmount] * [@XRATE] ) RETURN XAmount ) // NFCOBPeriodZeroXR1: Calculates the OB X-rate value buy sum all OB-values and multiply with the last rate from previous year. // NOTE: If OB values exists on other periods than the start of the year, then they also is multiplied with the last rate from previous year (not previous period).
NFCOBPeriodZeroXR2YYNext ForecastOBPeriodZeroXR2SUMN IF ( HASONEVALUE ( 'CURRENCY CODE X-RATE 2'[Currency Code X-Rate 2] ), VAR RestatedAmount = ADDCOLUMNS ( SUMMARIZE ( 'GL ANALYSIS','REPORTING PERIOD'[ID],'REPORTING FROM CURRENCY'[Currency Code] ), "@GLAmount", CALCULATE ( SUM ( 'GL ANALYSIS'[NFC_OB_PERIOD_DOM] ) ), "@XRATE", CALCULATE ( SELECTEDVALUE ( 'X-RATES 2'[PREV_YEAR_LAST_PERIOD_RATE]) ) ) VAR XAmount = SUMX ( RestatedAmount, [@GLAmount] * [@XRATE] ) RETURN XAmount ) // NFCOBPeriodZeroXR2: Calculates the OB X-rate value buy sum all OB-values and multiply with the last rate from previous year. // NOTE: If OB values exists on other periods than the start of the year, then they also is multiplied with the last rate from previous year (not previous period).
Switch ActualYNSelects a version of actual measureN[Selected DisplayUnit Switch] * SWITCH([Selected Actual Measure], 1, [ACT], 2, [ACT YTD], 3, [ACT R12], 4, [ACT Trans], 5, [ACT YTD Trans], 6, [ACT R12 Trans], 7, [ACT XR1 (Period Based)], 8, [ACT YTD XR1 (Period Based)], 9, [ACT R12 XR1 (Period Based)], 10, [ACT XR2 (Period Based)], 11, [ACT YTD XR2 (Period Based)], 12, [ACT R12 XR2 (Period Based)], 13, [ACT XR1 (YTD Based)], 14, [ACT YTD XR1 (YTD Based)], 15, [ACT R12 XR1 (YTD Based)], 16, [ACT XR2 (YTD Based)], 17, [ACT YTD XR2 (YTD Based)], 18, [ACT R12 XR2 (YTD Based)] ) // Complete list of measures to switch between, the list includes all available ACTUAL measures. // NOTE: This measures can have performance issue. Then instead use the other Switch Actual...-measures with shorter list of switches, like eg Switch XR1 (Period Based) and so on.
Switch Actual (Acc Calendar)YNSelects a version of actual measure when using the accounting calendarN[Selected DisplayUnit Switch] * SWITCH([Selected Actual Measure], 1, [ACT (Acc Calendar)], 2, [ACT YTD (Acc Calendar)] )
Switch Actual (Acc Currency)YNSelects one of the Actual measure in Accounting CurrencyN[Selected DisplayUnit Switch] * SWITCH([Selected Actual Measure], 1, [ACT], 2, [ACT YTD], 3, [ACT R12] ) // List of measures to switch between, the list includes ACTUAL measures on Accounting currency.
Switch Actual (For Drill Through)YNCopy of Switch Actual for when not always want to allow for drill through functionality in Power BI reportN[Switch Actual] // Same as Switch Actual (For Drill Through) 2, but to be able to have different target reports for the drill through. For example use one for Income statement and the second for Balance sheet reports.
Switch Actual (For Drill Through) 2YNCopy of Switch Actual for when not always want to allow for drill through functionality in Power BI reportN[Switch Actual] // Same as Switch Actual (For Drill Through), but to be able to have different target reports for the drill through. For example use one for Income statement and the second for Balance sheet reports.
Switch Actual (Trans Currency)YNSelects one of the Actual in Transaction CurrencyN[Selected DisplayUnit Switch] * SWITCH([Selected Actual Measure], 4, [ACT Trans], 5, [ACT YTD Trans], 6, [ACT R12 Trans] ) // List of measures to switch between, the list includes ACTUAL measures on Transaction currency.
Switch Comp (ActPY)YNSelects a version of actual previous year measureN[Selected DisplayUnit Switch] * SWITCH([Selected ActPY Measure], 1, [ACT PY], 5, [ACT PY Trans], 9, [ACT PY XR1 (Period Based)], 13, [ACT PY XR2 (Period Based)], 17, [ACT PY XR1 (YTD Based)], 21, [ACT PY XR2 (YTD Based)], 25, [ACT PY YTD], 29, [ACT PY YTD Trans], 33, [ACT PY YTD XR1 (Period Based)], 37, [ACT PY YTD XR2 (Period Based)], 41, [ACT PY YTD XR1 (YTD Based)], 45, [ACT PY YTD XR2 (YTD Based)], 49, [ACT PY R12], 53, [ACT PY R12 Trans], 57, [ACT PY R12 XR1 (Period Based)], 61, [ACT PY R12 XR2 (Period Based)], 65, [ACT PY R12 XR1 (YTD Based)], 69, [ACT PY R12 XR2 (YTD Based)] ) // To be used when to switch between all the different ACT PY measures as the benchmark for comparison.
Switch Comp (Bud)YNSelects a version of budget measureN[Selected DisplayUnit Switch] * SWITCH([Selected Bud Measure], 2, [BUD], 6, [BUD Trans], 10, [BUD XR1 (Period Based)], 14, [BUD XR2 (Period Based)], 18, [BUD XR1 (YTD Based)], 22, [BUD XR2 (YTD Based)], 26, [BUD YTD], 30, [BUD YTD Trans], 34, [BUD YTD XR1 (Period Based)], 38, [BUD YTD XR2 (Period Based)], 42, [BUD YTD XR1 (YTD Based)], 46, [BUD YTD XR2 (YTD Based)], 50, [BUD R12], 54, [BUD R12 Trans], 58, [BUD R12 XR1 (Period Based)], 62, [BUD R12 XR2 (Period Based)], 66, [BUD R12 XR1 (YTD Based)], 70, [BUD R12 XR2 (YTD Based)] ) // To be used when to switch between all the different BUDGET measures as the benchmark for comparison.
Switch Comp (CFC)YNSelects a version of current forecast measureN[Selected DisplayUnit Switch] * SWITCH([Selected CFC Measure], 3, [CFC], 7, [CFC Trans], 11, [CFC XR1 (Period Based)], 15, [CFC XR2 (Period Based)], 19, [CFC XR1 (YTD Based)], 23, [CFC XR2 (YTD Based)], 27, [CFC YTD], 31, [CFC YTD Trans], 35, [CFC YTD XR1 (Period Based)], 39, [CFC YTD XR2 (Period Based)], 43, [CFC YTD XR1 (YTD Based)], 47, [CFC YTD XR2 (YTD Based)], 51, [CFC R12], 55, [CFC R12 Trans], 59, [CFC R12 XR1 (Period Based)], 63, [CFC R12 XR2 (Period Based)], 67, [CFC R12 XR1 (YTD Based)], 71, [CFC R12 XR2 (YTD Based)] ) // To be used when to switch between all the different CURRENT FORECAST measures as the benchmark for comparison.
Switch Comp (NFC)YNSelects a version of next forecast measureN[Selected DisplayUnit Switch] * SWITCH([Selected NFC Measure], 4, [NFC], 8, [NFC Trans], 12, [NFC XR1 (Period Based)], 16, [NFC XR2 (Period Based)], 20, [NFC XR1 (YTD Based)], 24, [NFC XR2 (YTD Based)], 28, [NFC YTD], 32, [NFC YTD Trans], 36, [NFC YTD XR1 (Period Based)], 40, [NFC YTD XR2 (Period Based)], 44, [NFC YTD XR1 (YTD Based)], 48, [NFC YTD XR2 (YTD Based)], 52, [NFC R12], 56, [NFC R12 Trans], 60, [NFC R12 XR1 (Period Based)], 64, [NFC R12 XR2 (Period Based)], 68, [NFC R12 XR1 (YTD Based)], 72, [NFC R12 XR2 (YTD Based)] ) // To be used when to switch between all the different NEXT FORECAST measures as the benchmark for comparison.
Switch ComparisonYNSelects a version among all comparison measuresN[Selected DisplayUnit Switch] * SWITCH([Selected Comparison Measure], 1, [ACT PY], 2, [BUD], 3, [CFC], 4, [NFC], 5, [ACT PY Trans], 6, [BUD Trans], 7, [CFC Trans], 8, [NFC Trans], 9, [ACT PY XR1 (Period Based)], 10, [BUD XR1 (Period Based)], 11, [CFC XR1 (Period Based)], 12, [NFC XR1 (Period Based)], 13, [ACT PY XR2 (Period Based)], 14, [BUD XR2 (Period Based)], 15, [CFC XR2 (Period Based)], 16, [NFC XR2 (Period Based)], 17, [ACT PY XR1 (YTD Based)], 18, [BUD XR1 (YTD Based)], 19, [CFC XR1 (YTD Based)], 20, [NFC XR1 (YTD Based)], 21, [ACT PY XR2 (YTD Based)], 22, [BUD XR2 (YTD Based)], 23, [CFC XR2 (YTD Based)], 24, [NFC XR2 (YTD Based)], 25, [ACT PY YTD], 26, [BUD YTD], 27, [CFC YTD], 28, [NFC YTD], 29, [ACT PY YTD Trans], 30, [BUD YTD Trans], 31, [CFC YTD Trans], 32, [NFC YTD Trans], 33, [ACT PY YTD XR1 (Period Based)], 34, [BUD YTD XR1 (Period Based)], 35, [CFC YTD XR1 (Period Based)], 36, [NFC YTD XR1 (Period Based)], 37, [ACT PY YTD XR2 (Period Based)], 38, [BUD YTD XR2 (Period Based)], 39, [CFC YTD XR2 (Period Based)], 40, [NFC YTD XR2 (Period Based)], 41, [ACT PY YTD XR1 (YTD Based)], 42, [BUD YTD XR1 (YTD Based)], 43, [CFC YTD XR1 (YTD Based)], 44, [NFC YTD XR1 (YTD Based)], 45, [ACT PY YTD XR2 (YTD Based)], 46, [BUD YTD XR2 (YTD Based)], 47, [CFC YTD XR2 (YTD Based)], 48, [NFC YTD XR2 (YTD Based)], 49, [ACT PY R12], 50, [BUD R12], 51, [CFC R12], 52, [NFC R12], 53, [ACT PY R12 Trans], 54, [BUD R12 Trans], 55, [CFC R12 Trans], 56, [NFC R12 Trans], 57, [ACT PY R12 XR1 (Period Based)], 58, [BUD R12 XR1 (Period Based)], 59, [CFC R12 XR1 (Period Based)], 60, [NFC R12 XR1 (Period Based)], 61, [ACT PY R12 XR2 (Period Based)], 62, [BUD R12 XR2 (Period Based)], 63, [CFC R12 XR2 (Period Based)], 64, [NFC R12 XR2 (Period Based)], 65, [ACT PY R12 XR1 (YTD Based)], 66, [BUD R12 XR1 (YTD Based)], 67, [CFC R12 XR1 (YTD Based)], 68, [NFC R12 XR1 (YTD Based)], 69, [ACT PY R12 XR2 (YTD Based)], 70, [BUD R12 XR2 (YTD Based)], 71, [CFC R12 XR2 (YTD Based)], 72, [NFC R12 XR2 (YTD Based)] ) // Complete list of comparison measures to switch between, the list includes all available COMPARISON measures. // NOTE: This measures can have performance issue. Then instead use the other 'Switch Comp ...'-measures with shorter list of switches, like eg Switch Comp (ActPY) and so on.
Switch DiffYNCalculates the difference between selected Actual and Comparison measureN[Switch Actual] - [Switch Comparison] // Calculates the difference between the SWITCH ACTUAL and the SWITCH COMPARISON measures.
Switch Diff (%)YNCalculates the (%) difference between selected Actual and Comparison measureNDIVIDE([Switch Diff],ABS([Switch Comparison]), Blank()) // Calculates the % difference between the SWITCH ACTUAL and the SWITCH COMPARISON measures.
Switch Diff (ActPY%)YNCalculates the (%) difference between selected Actual and Act PY measureNDIVIDE([Switch Diff (ActPY)],ABS([Switch Comp (ActPY)]), Blank())
Switch Diff (ActPY)YNCalculates the difference between selected Actual and Act PY measureN[Switch Actual] - [Switch Comp (ActPY)]
Switch Diff (Bud%)YNCalculates the (%) difference between selected Actual and Budget measureNDIVIDE([Switch Diff (Bud)],ABS([Switch Comp (Bud)]), Blank())
Switch Diff (Bud)YNCalculates the difference between selected Actual and Budget measureN[Switch Actual] - [Switch Comp (Bud)]
Switch Diff (CFC%)YNCalculates the (%) difference between selected Actual and CFC measureNDIVIDE([Switch Diff (CFC)],ABS([Switch Comp (CFC)]), Blank()) // Calculates the % difference between the SWITCH ACTUAL and the CFC version of SWITCH COMPARISON measures.
Switch Diff (CFC)YNCalculates the difference between selected Actual and CFC measureN[Switch Actual] - [Switch Comp (CFC)] // Calculates the difference between the SWITCH ACTUAL and the CFC version of SWITCH COMPARISON measures.
Switch Diff (NFC%)YNCalculates the (%) difference between selected Actual and NFC measureNDIVIDE([Switch Diff (NFC)],ABS([Switch Comp (NFC)]), Blank()) // Calculates the % difference between the SWITCH ACTUAL and the NFC version of SWITCH COMPARISON measures.
Switch Diff (NFC)YNCalculates the difference between selected Actual and NFC measureN[Switch Actual] - [Switch Comp (NFC)] // Calculates the difference between the SWITCH ACTUAL and the NFC version of SWITCH COMPARISON measures.
Switch Diff XR (Period Based)YNCalculates the difference between selected XR1 (Period Based) and XR2 (Period Based) measureN[Switch XR1 (Period Based)] - [Switch XR2 (Period Based)]
Switch Diff XR (Period Based) (%)YNCalculates the (%) difference between selected XR1 (Period Based) and XR2 (Period Based) measureNDIVIDE([Switch Diff XR (Period Based)],ABS([Switch XR2 (Period Based)]), Blank())
Switch Diff XR (YTD Based)YNCalculates the difference between selected XR1 (YTD Based) and XR2 (YTD Based) measureN[Switch XR1 (YTD Based)] - [Switch XR2 (YTD Based)]
Switch Diff XR (YTD Based) (%)YNCalculates the (%) difference between selected XR1 (YTD Based) and XR2 (YTD Based) measureNDIVIDE([Switch Diff XR (YTD Based)],ABS([Switch XR2 (YTD Based)]), Blank())
Switch XR1 (Period Based)YNSelects a version of Actual XR1 (Period Based) measureN[Selected DisplayUnit Switch] * SWITCH([Selected Actual XR1 (Period Based) Measure], 7, [ACT XR1 (Period Based)], 8, [ACT YTD XR1 (Period Based)], 9, [ACT R12 XR1 (Period Based)] )
Switch XR1 (YTD Based)YNSelects a version of Actual XR1 (YTD Based) measureN[Selected DisplayUnit Switch] * SWITCH([Selected Actual XR1 (YTD Based) Measure], 13, [ACT XR1 (YTD Based)], 14, [ACT YTD XR1 (YTD Based)], 15, [ACT R12 XR1 (YTD Based)] )
Switch XR2 (Period Based)YNSelects a version of Actual XR2 (Period Based) measureN[Selected DisplayUnit Switch] * SWITCH([Selected Actual XR2 (Period Based) Measure], 10, [ACT XR2 (Period Based)], 11, [ACT YTD XR2 (Period Based)], 12, [ACT R12 XR2 (Period Based)] )
Switch XR2 (YTD Based)YNSelects a version of Actual XR2 (YTD Based) measureN[Selected DisplayUnit Switch] * SWITCH([Selected Actual XR2 (YTD Based) Measure], 16, [ACT XR2 (YTD Based)], 17, [ACT YTD XR2 (YTD Based)], 18, [ACT R12 XR2 (YTD Based)] )

Time Intelligence Measures

Time based measures are calculated in the cube with respect to other measures. The table below defines the meaning/definition of  the different time measures. These measures need to be used with a specific time dimension hierarchy [REPORTING_DATE].[RepDateMFHy].

Measure Meaning
YTD Aggregated value for current month in current  year. E.g. for period 202010 Ytd represents sum of periods 202000-202010.
R12 For a given period, the sum all months from one year back up to the previous month. E.g. Rolling 12 for 202010 is the sum of months 201910 - 202009
PY Previous Year
The value of the corresponding month one year back. E.g. for month 202010, the value of month 201910.
YTD PY Year to Date Previous Year
Aggregated value for corresponding month one year back. E.g. for month 202010 YTD Previous Year represents sum of months 201901-201910.
R12 PY Rolling 12 (completed) Months Previous Year
For a given month, first going one year back, then taking the sum of all months from one (more) year back up to the previous month. E.g. for month 202010 the sum of month 201810-201909
Avg XXX Ytd Sum XXX YTD/Count XXX YTD
Avg XXX R12 Sum XXX R12/Count XXX R12
XXX % YTD Count XXX YTD/Count YYY YTD
XXX % R12 Count XXX R12/Count XXX R12

USED BY MODEL(S)

Model Name
General LedgerFinancials

Data source Information

The data source for this object is defined using IFS Developer Tool. The data source contains a number of transformations where the model reads data from the last step, i.e. the Data source view name (DW Source View Name).

Additional information can be found in the online documentation of Information Sources.

Model Table DW Source view (SQL Server) BI Access View Referenced Information Source Recommended Access Type
GL ANALYSIS MEASURESFACT_TRANS_BAL_SET_AM_CONF_TMFACT_GL_TRANSACTION_BI, FACT_GL_BALANCE_BI, FACT_GL_PERIOD_BUDGET_BI, FACT_PLAN_TRANS_VALID_BIFACT_GL_TRANSACTION, FACT_GL_BALANCE, FACT_GL_PERIOD_BUDGET, FACT_PLAN_TRANS_VALIDData Mart