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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Rae2023
Frequent Visitor

Can you return a measure to Power Query from Power BI

Hello, 

I'm new to using Power BI but have used Power Query in Excel for about 1 year.

I previously used two named ranges in Excel to control a Date range and used these as a filter Parameter in Power Query. This worked a treat until I decided to move to Power BI.

I created a Date Slicer with Start Date & End Date measures in Power BI but do not know how to return these values to Parameters that can be used in Power Query.

Can anyone tell me how to do this?

 

Parameters.png

 

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Rae2023 

 

This is not possible. Power Query is a one-way-street to load data fro, several data sources into Power BI Desktop. As soon as the data are in the Desktop data model or in the Report you can not bring them back to Power Query. 

 

What might help you is to create a manual table in Power Query which you then use to influence the Queries in Power Query or to maintain the parameters directky in Power Query. The other option is to still maintain your parameters in Excel and load them into Power Query for Power BI Desktop.

 

Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

2 REPLIES 2
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Rae2023 

 

This is not possible. Power Query is a one-way-street to load data fro, several data sources into Power BI Desktop. As soon as the data are in the Desktop data model or in the Report you can not bring them back to Power Query. 

 

What might help you is to create a manual table in Power Query which you then use to influence the Queries in Power Query or to maintain the parameters directky in Power Query. The other option is to still maintain your parameters in Excel and load them into Power Query for Power BI Desktop.

 

Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Thanks Michael, I've been trying for weeks to find a solution online.

Wish I'd posted up the question earlier.

Thank you for the suggestions, I'll look into both options.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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