Forum Discussion
Anonymous
8 years agoNot applicable
Edit Variables as Slicer or dropdown for the user
Hi, I am using HANA view as a data source for my Direct Query Power BI Desktop Report. HANA View works on mandatory variables that need to be passed such as 'UNIT' in which the data will be calc...
- Anonymous8 years ago
Anonymous,
You have created a parameter named Unit, and define some values for it , right? If so, change {Cube.ApplyParameter,"UNIT",{'"&Unit&"'}} to the following:
{Cube.ApplyParameter,"UNIT",{""&Unit&""}}
Regards,
Lydia
Anonymous
8 years agoNot applicable
Thanks a lot Lydia.
This solution worked for me :).
One of my Parameter is of type integer.
I am using the following syntax for passing parameter Year_Start
{Cube.ApplyParameter,"Year_Start",{"&Year_Start&"}},
This statement throws the following error below :
Can you please suggest
Regards
Power BI User
Anonymous
8 years agoNot applicable
Anonymous,
Please check my second reply in this thread. Create the Year_Start parameter in Text type, then use Number. FromText() function.
Regards,
Lydia