List.Transform a dynamics set of columns with a value from a function call

Bob Faessen 20 Reputation points
2023-08-09T14:37:10.98+00:00

I am trying for a while to have a dynamic step to transform the data from 1-n columns with the result of a function call.

We are working on Dynamics 365 where we have a lot of optionsets.

I have a table with all optionsets and a step where I join my columnnames to this table. So I know which columns contain an optionset value.

I have created a function which delivers the right label for the optionset value.

OptionLookup(opstionsetvalue, "entityname", "optionsetname(columnname)")

So basically I created a step:

Table.TransformColumns(DateToLocal,List.Transform(OptionsetColumns,

each { , each OptionLookup(, "bookableresource", "here should the columnName be as text"), type text}))

the _ provides the right current value needed for the function, the function is also applied to the right columns but the function needs the ColumnName in text and I don't know how to get this. I tried OptionsetColumns but then the whole list is inserted there.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
43,325 questions
{count} votes

Accepted answer
  1. deherman-MSFT 37,986 Reputation points Microsoft Employee
    2023-08-09T14:54:47.25+00:00

    @Bob Faessen

    I believe your question is related to Microsoft Fabric. Please post on the dedicated forum and our experts there should be able to help.

    https://community.fabric.microsoft.com/

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.