Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn 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 |
|---|---|
| 10 | |
| 9 | |
| 7 | |
| 5 | |
| 5 |