Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |