cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User I
Super User I

How to pass parameter created through ManageParamter to a query that can use this value to filter

Hi @ImkeF , @TomMartens

 

1.  I created a paremeter called Level3 using ManagePAramter.

2. I have a query to do transformation called ExtractData

3. As the last step in the ExtractData query I want to pass the value in Level3 parameter.

4. Also next time when use Edit Parameters and change the value I should get a new set of rows based on the value entered.

 

How to acheive this ?

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!
1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Sorry, was busy. Here is a good reference:

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

 

This missing bit might be how to use the parameter in the M code:

 

Perform the desired filter-operation by using a hardcoded value like this:

 

PBI_Parameter_Use_In_M0.jpg

 

and then repalce it by a reference to your parameter:

 

PBI_Parameter_Use_In_M.jpg

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

4 REPLIES 4
Super User I
Super User I

Hi @MarcelBeug,

 

If this is possible can you please advise the steps.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!
Super User III
Super User III

Sorry, was busy. Here is a good reference:

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

 

This missing bit might be how to use the parameter in the M code:

 

Perform the desired filter-operation by using a hardcoded value like this:

 

PBI_Parameter_Use_In_M0.jpg

 

and then repalce it by a reference to your parameter:

 

PBI_Parameter_Use_In_M.jpg

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

Hi @ImkeF,

 

By the time your reply arrived , I had done the same thing as suggested by you.

 

Just  one more calrification , how to reference a table generated by a earlier query in another query.

 

I have a query called EMPMASTER.  I am creating another query to filter records from the output table of this query, in another query to filter records using parameter values.

 

Cheers

 

CheenuSing

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

Hi @ImkeF,

 

Sorry for the trouble. I got it working , it was a typo error in the name of the previously stored query.

 

Thank you for your support at all times.

 

 

Cheers

 

CheenuSing

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors