Forum Discussion
M Language Syntax problem from Excel 2013 to 2016
Hi All,
i cant figure out why i am getting this problem after passing from excel 2013 to 2016 (upgrading to Office 365).
The syntax seems correct and also Power Query editor says that it is fine but then the step is considered wrong.
=Text.Select(Text.Start([IdRisorsa],2),{"A".."Z"})
The formula worked perfectly in excel 2013 then, with the passage to the new version, it started giving error. The error is "Expression.Error: The name 'Text.Select' wasn't recognized. Make sure it's spelled correctly."
Moreover the exact same formula works on another PC and other Power query users confirmed the formula works fine on their computers. I cant understand what is going on. If i insert the formula in formula bar everything is ok.
pls help really important.
LucaA1 , I didn't find the version history, but 2.49 is mentioned more than an year ago. Text.Select also was introduced about an year ago. Perhaps your version is bit old.
You may check if function is supported or not in your version. Start blank query, in formula bar type
= #shared
and you will see list of all supported for your version functions. Better to transform that list into the table and sort ascending - it'll be easier to check.
7 Replies
- SergeiBaklanDiamond Contributor
LucaA1 , I may only repeat the screenshort from here https://community.powerbi.com/t5/Desktop/M-Language-Syntax-problem-from-Excel-2013-to-2016/td-p/684472 but made in Excel Power Query - it works. Moreover, if you type it in formula bar and have no such error that's not the syntax of the function itself. Most probably that's what around it. If you could provide small sample file it'll be easier to say what that could be.
- LucaA1Copper Contributor
Data of that model are sensitive, but i am gonna share this other book with a sample, and text.select still doesn't work.
Can you help me?
thanks
Luca
- SergeiBaklanDiamond Contributor
LucaA1 , I was no able to reproduce, just refreshed and it works (attached). If you check here
what is your Power Query version?