Forum Discussion
I just wanted to propose a fdx query for this request. Accessing the data table directly is not a sustainable way of doing it.
Ah thanks and noted Christian. Are you able to provide some samples of FDX BR queries? I tried to find some help in the documentation and there is nothing much.
- ChristianW4 years agoValued Contributor
Here is something I used for a custom IC matching report:
'Retrieve the data for the first query Dim subQueryDataTable As DataTable = BRApi.Import.Data.FdxExecuteDataUnit(si, cubeName, $"E#{entityName}.Base", "local", scenarioTypeId, $"S#{scenarioName}", $"T#{timeName}", "YTD", True, "Flow='None'", 4, True)
And here is the explanation for the parameters:
- nizar3 years agoNew Contributor
Hi Christian,
can you please give us an exemple with reel value ?
i am strugle with this parametre, didn't find the correct syntaxt to get it.
scenarioTypeId
thanks
- nizar3 years agoNew Contributor
Hi Christian,
i am using it like this :
Dim subQueryDataTable As DataTable = BRApi.Import.Data.FdxExecuteDataUnit(si, "ContributionMargin", "E#{C010101}.Base", "local",brapi.Finance.Scenario.GetScenarioType(si,0).Id, "S#{Actual}", "T#{2021M10}", "YTD", True, "Flow='None'", 4, True)
can you please tell me what is wrong ?
many tahnks
- ChristianW2 years agoValued Contributor
If you like to use the curley brackets {} with strings, you need to add a $ sign infront of the quotes, like this: $"E#{C010101}.Base", $"S#{Actual}" or $"T#{2021M10}". But if you don't use variables at all, there is no need for the curley brackets at all.
Can you try this: Dim subQueryDataTable As DataTable = BRApi.Import.Data.FdxExecuteDataUnit(si, "ContributionMargin", "E#C010101.Base", "local",brapi.Finance.Scenario.GetScenarioType(si,0).Id, "S#Actual", "T#2021M10", "YTD", True, "Flow='None'", 4, True)
Cheers
- RafMarques2 years agoNew Contributor III
Hi ChristianW,
This works perfect!
Is there any change to join the names with descriptions?
Example: Acc1 - Expenses
Thanks
Raf
- ChristianW2 years agoValued Contributor
Hi Raf
Yes, you can loop the rows in the business rule and add the descriptions for the needed dimension members.
Cheers
Related Content
- 3 months ago
- 12 months ago