Forum Discussion
mike_honey
Memorable Member
10 years agoAuto-rename all Query columns e.g. to remove underscore
Today I was grappling with shaping a series of Queries based on a SQL Datawarehouse. They use what's probably the best column naming standard (IMO) e.g. Sales_Amount. However PBI Desktop doesnt see...
mike_honey
Memorable Member
6 years agoYou are so close - you just need to replace "table" with the previous STEP name (not table/query name). If that step name has spaces or special characters it will need to be enclosed e.g. #"My Previous Step Name".
It's a weird feature of the M language. It's not what I'd call a "script" language where the sequence of the lines of code controls the flow. In the code generated by the Power Query UI, there's actually a reference to the prior line of code, on every line. Technically that returns a table with all the data "as at" that prior step.
DonalMc
Advocate II
6 years agomike - thanks a bunch - I should have seen that.