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

Update parameter value dynamically in power bi desktop dataset using c# code

Is there any option to update parameter value in power bi. Parameter may such as update connection string of date parmeter to filter data and reports accordingly parameter usin c# code while embedded report.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Update parameter value dynamically in power bi desktop dataset using c# code

HI @ramawatar,

 

No, you can only manually modify query parameters. 

For your requirement, I'd like to suggest you use other source as parameters, then you can modify the source to achieve dynamic change result.

 

For e.g:

Parameters are stored in csv file, then use csv connector to get data.
Create new query use above records(as parameters).

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI

View solution in original post

3 REPLIES 3
ramawatar Frequent Visitor
Frequent Visitor

update parameter value in power bi published report using c# code

I have a power bi report, in which i have multiple parameter. Is there is option to update parameter value dynamically using c# code.

I also used power bi rest api which allows manipulation on table and parameter which was created from Power BI REST API.

Highlighted
zoloturu
Advisor

Re: update parameter value in power bi published report using c# code

Hi @ramawatar,

 

Let me know sense behind your parameter. For which purpose you need it? There are no ability to change parameter, but maybe I can give you an alternative.

 

You can vote for it at the forum There are some similar ideas posted. Once Microsoft approve it then it can be added to functionality.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15356220-change-parameters-from-t...

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/32764327-report-parameter-like-ss...

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/17849464-enable-parameters-on-pow...

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/18735895-parameters

Community Support Team
Community Support Team

Re: Update parameter value dynamically in power bi desktop dataset using c# code

HI @ramawatar,

 

No, you can only manually modify query parameters. 

For your requirement, I'd like to suggest you use other source as parameters, then you can modify the source to achieve dynamic change result.

 

For e.g:

Parameters are stored in csv file, then use csv connector to get data.
Create new query use above records(as parameters).

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors