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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hey guys,
I would like to replace a static value (in that case a column reference) by an variable:
I tried it the following way which didn't work:
"RemovedColumns[#"""& HierachyAttribute &"""]"
Would appreciate any hints 🙂
Thanks Dan
Solved! Go to Solution.
You can try following (this will depend upon your context)
Table.Column(RemovedColumns,HierachyAttribute)
Example is below
RemovedColumns = Table.RemoveColumns(#"Changed Type",{"Country"}),
HierachyAttribute = "Sales Channel",
#"Added Custom" = Table.AddColumn(RemovedColumns, "Custom", each Table.Column(RemovedColumns,HierachyAttribute))
You can try following (this will depend upon your context)
Table.Column(RemovedColumns,HierachyAttribute)
Example is below
RemovedColumns = Table.RemoveColumns(#"Changed Type",{"Country"}),
HierachyAttribute = "Sales Channel",
#"Added Custom" = Table.AddColumn(RemovedColumns, "Custom", each Table.Column(RemovedColumns,HierachyAttribute))
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |