Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ganotra_2730
Frequent Visitor

Using dynamic M Query parameters of different pbix to another pbix

I have 2 pbix file report1.pbix where I am fetching data using direct query mode and in report2.pbix I am using the data in slicers from report1.pbix using power BI dataset and then using direct query mode  to fill data in table in report2.pbix based on filtering done in slicer I want to use dynamic M query parameter but the M query parameters that I have created and binded in report1.pbix are not visible in report2.pbix where I want to use them please provide the solution for this.

2 REPLIES 2
rohit1991
Super User
Super User

hi @ganotra_2730 ,

To use dynamic M Query parameters across two Power BI reports:

  1. Enable DirectQuery for Datasets:

    • In Report2.pbix, enable DirectQuery for Power BI Datasets and AS under Options.
  2. Replicate Parameters in Report2:

    • Recreate the same M Query parameters in Report2.pbix via Transform Data > Manage Parameters.
  3. Bind Parameters in Report2:

    • Use these parameters in Power Query to filter data dynamically in Report2.
  4. Share Parameter Values:

    • Use a shared source (e.g., SQL table, Excel, or SharePoint) to synchronize parameter values between reports.
  5. Optional - Automate with REST API:

    • Use Power BI REST API to update parameters programmatically if required.

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
Akash_Varuna
Super User
Super User

 

Use the same dataset in report2 by connecting to the published Power BI dataset from report1.

M query parameters cannot be passed directly across different reports in Power BI Desktop.

Consider using slicers or filters in report2 to dynamically filter data based on the dataset.

Alternatively, replicate the parameter logic via DAX measures or Power BI Service parameters for dynamic filtering.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors