Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi Please I am trying to pass column name as a variable to create a table.
This query is fine (Ii am using the column name explicitly)
Solved! Go to Solution.
Hi, @mdgene
Because in the following formula, the variable T is not recognized as a column in the table, but as a text. You cannot label a column in the variable way above.
Therefore, in the filter function, the filtering condition is that text 1 is equal to text 2, not that the column value is equal to "b", so the result of the filter function is empty, and the returned table is empty.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the update
Hi, @mdgene
Is the above post helpful to you?
If it does, could you please mark the post which help as Answered? It will help the others in the community find the solution easily if they face the same problem with you. Thank you.😀
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @mdgene
Because in the following formula, the variable T is not recognized as a column in the table, but as a text. You cannot label a column in the variable way above.
Therefore, in the filter function, the filtering condition is that text 1 is equal to text 2, not that the column value is equal to "b", so the result of the filter function is empty, and the returned table is empty.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 47 | |
| 45 | |
| 33 | |
| 33 | |
| 30 |
| User | Count |
|---|---|
| 136 | |
| 116 | |
| 58 | |
| 58 | |
| 56 |