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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
soni27
Helper I
Helper I

Variable in Column Name in Power Query in Drill Down

I have LastColumnName Step in the Power Query

 

I would like to drill down using LastColumnName

I tried below,  It is not working, please assist

= Custom2{0}[Record.Field(_, LastColumnName)]

3 REPLIES 3
Anonymous
Not applicable

What does the step LastColumnName = ? Also, when you say "drill down", do you want to return the value from the last column in the first row, or a list of all the values in the last column. Finally, what is the actual column name at this step?

 

Thanks! -- Nate

Anonymous
Not applicable

= Custom2{0}[LastColumnName]

--Nate

It is not working,  I can not able to drill down using variable Name for the column name

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors