cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bhavana_PB Frequent Visitor
Frequent Visitor

Invalid Identifier error

Hi All,

 

I have created a parameter using manage parameter option form edit queries. But I want to call that parameter in a measure, so I created a blank query and I am trying write this syntax 
Capture.PNG

As you can see I have named my parameter on right hand side as "Select Measure"
so when I write a syntax in blank query like this 
let
Source = #table({“MeasureParameter”},{{#”Select Measure”}})
in
Source

It gives me Invalid Identifier error. over this section 

Capture.PNG
I have no idea what is happeneing, My actual parameter is on right side of syntax, so what is first part which I have highlighted?
I think its just a random name by which that parameter will be called.. I need help on this..

I am following this article
http://community.powerbi.com/t5/Desktop/Passing-Parameters-in-measures/m-p/208276

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
v-jiascu-msft Super Contributor
Super Contributor

Re: Invalid Identifier error

Hi @Bhavana_PB,

 

Please try it like this. I would suggest you avoid using spaces in the parameter names. Then you can use the parameter name directly.

let
    Source = #"Select Measure"
in
    Source

Invalid_Identifier_error

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-jiascu-msft Super Contributor
Super Contributor

Re: Invalid Identifier error

Hi @Bhavana_PB,

 

Please try it like this. I would suggest you avoid using spaces in the parameter names. Then you can use the parameter name directly.

let
    Source = #"Select Measure"
in
    Source

Invalid_Identifier_error

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

v-jiascu-msft Super Contributor
Super Contributor

Re: Invalid Identifier error

Hi @Bhavana_PB,

 

Did it help? Can you mark it as an answer?

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Bhavana_PB Frequent Visitor
Frequent Visitor

Re: Invalid Identifier error

Hi,

 

Sorry for late reply, yes its working for me.

Thank you
Bhavana

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 319 members 3,332 guests
Please welcome our newest community members: