Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Use a cell value in a column reference

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

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

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]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Vijay_A_Verma ,

Thanks for the prompt reply!
Your solution works perfectly.

Thank you so much

Vijay_A_Verma
Super User
Super User

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]))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors