Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi fellow PBI users,
I would like to know how to include a cell value in a column reference.
I need that as part of a Table.ReplaceValue step.
I would like to reference one of 3 columns of my table named: "Level 1", "Level 2" and "Level 3".
Another column "IsTotal" contains for each row the values 1, 2 or 3.
So I would like to be able to have some sort of dynamic reference. I tried the following: [Level&" "[IsTotal]]
But it does not work of course.
Many thanks in advance
Antoine
Solved! Go to Solution.
If you can post a sample table and with reference to that if you can describe what you are trying to replace that would be great.
There are many ways to access variable column name but it would be context specific. Like at a record level, I can access the value like this
Record.Field(_,"Level "&Text.From([IsTotal]))
Hi @Vijay_A_Verma ,
Thanks for the prompt reply!
Your solution works perfectly.
Thank you so much
If you can post a sample table and with reference to that if you can describe what you are trying to replace that would be great.
There are many ways to access variable column name but it would be context specific. Like at a record level, I can access the value like this
Record.Field(_,"Level "&Text.From([IsTotal]))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 8 | |
| 5 | |
| 5 |