Skip to main content
Newcomer
Dec 12, 2023 12:30 PM UTC
Solved

Get multiple time period in FDX

Dear Community,

How to get multiple time period data in FDX ? 

We have data's in row manner. We need it in column wise.

The data is imported into a table using FdxExecuteDataUnit function. 

MarcR
MarcRAnswer
Contributor
Dec 12, 2023 1:10 PM UTC
Dim dt As DataTable = BRApi.Import.Data.FdxExecuteDataUnitTimePivot(si, "Corporate", "E#Frankfurt", "Local", ScenarioDimHelper.GetIdFromName(si, "Actual"), "S#Actual", "T#2018.base, T#2017.base", "YTD", False, False, Nothing, 8, True)

'Dim dt As DataTable = BRApi.Import.Data.FdxExecuteDataUnitTimePivot(si, cubeName, entityMemFilter, consName, scenarioTypeId, scenarioMemFilter, timeMemFilter, viewName, suppressNoData, useGenericTimeColNames, filter, parallelQueryCount, logStatistics)

Try the TimePivot variant(s).

8 replies

MarcR
MarcRAnswer
Contributor
Dec 12, 2023 1:10 PM UTC
Dim dt As DataTable = BRApi.Import.Data.FdxExecuteDataUnitTimePivot(si, "Corporate", "E#Frankfurt", "Local", ScenarioDimHelper.GetIdFromName(si, "Actual"), "S#Actual", "T#2018.base, T#2017.base", "YTD", False, False, Nothing, 8, True)

'Dim dt As DataTable = BRApi.Import.Data.FdxExecuteDataUnitTimePivot(si, cubeName, entityMemFilter, consName, scenarioTypeId, scenarioMemFilter, timeMemFilter, viewName, suppressNoData, useGenericTimeColNames, filter, parallelQueryCount, logStatistics)

Try the TimePivot variant(s).

ResmiKRAuthor
Newcomer
Dec 13, 2023 9:41 AM UTC
Dim dt As DataTable = BRApi.Import.Data.FdxExecuteDataUnitTimePivot(si, "Corporate", "E#Frankfurt", "Local", ScenarioDimHelper.GetIdFromName(si, "Actual"), "S#Actual", "T#2018.base, T#2017.base", "YTD", False, False, Nothing, 8, True)

In this filter if I need to include multiple account dimension members, How to include that. Is that possible?

MarcR
Contributor
Dec 13, 2023 9:45 AM UTC

Yes, in the filter option (the Nothing before the 8 parallel count) you can use 'SQL type filters' e.g. Account <> 'COGS_USENG'

So not A#xxx.tree but it should get you there. However, if you set a filter that returns no values it will return all. It must be a filter that returns data.

Employee - Guide
Dec 12, 2023 1:57 PM UTC

Hello,

You might probably need FDXExecuteCubeView, where you can get as an output all the data in a specified cube view, whatever time periods you use 🙂

You can find a few examples in this community : 

https://community.onestream.com/topic/show?tid=3050&fid=8

https://community.onestream.com/topic/show?tid=1932&fid=9

or here (oddly) : https://dzone.com/articles/onestream-fast-data-extracts-apis

 

Regards,

ResmiKRAuthor
Newcomer
Jan 18, 2024 2:52 PM UTC

Dear Community, 

On adding to this pivot time function, is there any way to get multiple time under which i should have account column as well. 

ResmiKR_0-1705589479877.png