Forum Discussion
Anonymous
8 years agoNot applicable
Insert Parameter in M language
Hi, I'm trying to build a Parameterised Query using M Language. I have my variables stored as text fields but when I add them to the final query, it doesnt seem to pick up the string but just ret...
- Anonymous8 years ago
Hi All,
So after many variations, it turns out it's the same as VBA without spaces. I was building a Paramaeterised Query and wanted a single place to change the value and it update the 6 Queries I have.
The Date value appeared like this "201801", so I created a variable and then managed to insert that using ""&Date&""
All working, thanks for you help. :)
Anonymous
7 years agoNot applicable
Hi Anonymous Thank you for your effort to help me to solve this problem for me. I am happy to tell you that finally I found the exact solution for passing parameter into select statement in SAP HANA.
Here is the simple one line code that worked for me. :)
let Source=SapHana.Database(CName, [Query="SELECT * FROM "&SName&".""FN_PowerBI_SampleFunctionName""();"]) in Source
Thanks, Kulchandra Neupane