Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello experts,
I'm looking for a solution to create a record with a custom field name through a function.
I tried to use the following expression for CreateRecord function but it does not work properly.
(fieldName) =>
let
rec = [fieldName = "some value"]
in
rec
In a result, it returns a record with a field named fieldName.
But I'm expecting that it returns a record named as the passed parameter in the function - SpecificFieldName.
Is there a way to do it?
Thank you in advance!
Solved! Go to Solution.
Hi @Hennadii
(fieldName) =>
let
rec = Record.FromList({"some value"}, {fieldName})
in
rec
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @Hennadii
(fieldName) =>
let
rec = Record.FromList({"some value"}, {fieldName})
in
rec
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
User | Count |
---|---|
84 | |
81 | |
64 | |
53 | |
45 |
User | Count |
---|---|
100 | |
48 | |
42 | |
39 | |
38 |