Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi!
How can I use an input parameter in the function to select a column?
Same as using ["NAME COLUMN"], then use a parameter: [parameter]
For example, in this case of combining columns:
When I introduce the parameter, I replace it within the [ ]
Because I know that if I put it in the editor as: ["parameter"] it works, but I wanted to use it as a variable for more fields..
Thank you.
All the best!
Hi @lbendlin
If I remove the square brackets the result is:
ID | FIELD | ID - FIELD |
1 | Black | 1 - FIELD |
2 | Yellow | 2 - FIELD |
3 | Orange | 3 - FIELD |
4 | Blue | 4 - FIELD |
5 | Green | 5 - FIELD |
I need this result:
ID | FIELD | ID - FIELD |
1 | Black | 1 - Black |
2 | Yellow | 2 - Yellow |
3 | Orange | 3 - Orange |
4 | Blue | 4 - Blue |
5 | Green | 5 - Green |
I need select the column with the name of the parameter.
Read about Expression.Evaluate. Make sure to read the scope part carefully.
It doesn't work for me. What I need is a toString of the parameter inside the brackets to search the column. Now it's looking for Field literally.
specify only the parameter name, remove the square brackets.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
219 | |
89 | |
76 | |
67 | |
60 |