The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
82 | |
64 | |
53 | |
52 |
User | Count |
---|---|
128 | |
115 | |
80 | |
65 | |
63 |