Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi I have used SQL query to bring two cycles (8+4 2024 cycle and 6+6 2024 cycle) of forecast data into power query. Due to the large size of data, I created two parameters in power query called "current_forecast_cycle" and "quarter_commit_cycle" which is supposed to be equivalent to the fixed value "8+4 2024 cycle" and "6+6 2024 cycle", so that I can change the parameter values in the power BI server side each time when new cycle forecast is available.
Since I have zero M code experience, I just copied some prior answers from this community, like below. But it won't return a correct answer.
Can anyone help to suggest how to properly use M code to replace the two fixed cycle value with the two paramters in power query advance editor?
Much appreicated in advance.
Solved! Go to Solution.
Thank you @lbendlin . I finally managed to guess out how this "& and &" works in such situation, and that works perfectly.
move the closing parenthesis before the last double quote
Thank you @lbendlin . I finally managed to guess out how this "& and &" works in such situation, and that works perfectly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
12 | |
11 | |
9 | |
6 | |
6 |