Forum Discussion
Custom Url parameters in Power BI
- 7 years ago
Hi mudassarhassan,
You can use URL filter, please refer to: https://docs.microsoft.com/en-us/power-bi/service-url-filters.
Regards,
Jimmy Tao
Actually I will be calling Power BI Report from web-api which can pass parameters as country=us,state=tx rather than what Power BI Understands. If we have such parameters how can i apply filters to the report data??
Hi mudassarhassan,
You can simply create some filters or slicers in your report. Then, suppose you are embedding your report into your website, just modify the embed configuration like below(set filterPaneEnabled as true):
var config= {
type: 'report',
tokenType: tokenType == '0' ? models.TokenType.Aad : models.TokenType.Embed,
accessToken: txtAccessToken,
embedUrl: txtEmbedUrl,
id: txtEmbedReportId,
permissions: permissions,
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};
Regards,
Jimmy Tao
- mudassarhassan8 years agoFrequent Visitor
No Jimmy, that didn't work or fulfill my requirement
I want to filter the data in dashboard with country=usa, when someone tries to access the PowerBI Dashboard
https://app.powerbi.com/groups/me/reports/xxx/ReportSection?country=usa
- v-yuta-msft7 years ago
Community Support
Hi mudassarhassan,
You can use URL filter, please refer to: https://docs.microsoft.com/en-us/power-bi/service-url-filters.
Regards,
Jimmy Tao