Planning Analytics

 View Only

Workbench Tips: How to use Formula with Variables to extract Parent – Child metadata for new dimension.

By Svetlana Pestsova posted Fri March 31, 2023 04:18 PM

  

It’s possible to use formula in the data and metadata import; that was released in 2.0.85.

I’m going to post the simples steps you need to do to extract data from one column and use it as Child and Parent hierarchy.

There is a file with the column containing date info that I’d like to use for my new Time dimension:

I’d create a new dimension and drop a file that contains this column. I would also save the process for the maintenance purpose that I’ll name Time_update.

Simply add three new variables and set the first variable – vPeriods - to point to Periods column.

Then in the next two variables - vMonth and vYear, I’ll extract data with the help of the formula as below:

The last step is to map Child and Parent with the variables vMonth and vYear and import:

The dimension with the correct hierarchy is created:


There is as well the TI process (Time_update) for the future use:

Hope you’d find this functionality useful for your data and metadata manipulations.


2 comments
45 views

Permalink

Comments

Wed May 10, 2023 02:12 PM

Wim, 

This line is for the UI creation of the hierarchy where  we do some post processing of the errors to output better information.

The error would be logged if the Wizard is used to run the hierarchy import.

 As you’d save this process for the future use such as maintenance and could execute it as stand alone. You may decide to comment this line out as this would get the error in the process log.

Fri March 31, 2023 07:22 PM

Hello Svetlana, the line with StringToNumber( ... ), even though PAW saves the process, is wrong I think.