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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
arunbyc
Helper III
Helper III

Paginated reports: getting error that parameter not declared though I properly declared it

In my paginated reports, I’m getting an error saying that a parameter has not been declared , though they have actually been (see in the attached screenshots), .

 

I’ve also tried several possible fixes, such as: Hardcoding some values directly in the DAX query to confirm the report runs  and then replacing those hardcoded values with parameters afterward,  Declaring the parameters before writing the query, and also the other way around. None of them helped.

 

Has anyone else run into this issue and found a working solution?

 

Thanks

WhatsApp Image 2025-11-05 at 21.59.26_1697147e.jpg




1 ACCEPTED SOLUTION

Solved. In the dataset properties ---> parameters, I typed the parameter name as @to_date and the value as [@to_date]. (This was what Chat GPT told me, unfortunately. :)). Today I luckily saw a web with a screenshot of this property and basedon that, I corrected the name to simply to_date (without the @ sign), and the value kept as before as  [@to_date]. This worked.

View solution in original post

5 REPLIES 5
v-priyankata
Community Support
Community Support

Hi @arunbyc 

Thank you for reaching out to the Microsoft Fabric Forum Community.

As you mentioned that your issue has been resolved, I'm glad to hear that. Could you please mark your solution reply as the accepted solution? This will help others who might face the same issue.

Thanks.

Hi @arunbyc 

I'm glad to hear that your issue has been resolved. Could you please mark your solution reply as the accepted solution? This will help others who might face the same issue.

Thanks.

parry2k
Super User
Super User

@arunbyc if you right-click on the dataset, click dataset properties, can you make sure under parameters section these parameters are there?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

That is where I posted the image from. When I click dataset properties --> parameters tab, I see @to_date and in the Value (where I typed =Parameters!to_date.Value) it shows [@to_date]. when I press fx button it shows the entire expression as shown in the picture.

If I ignore the error message and still run the report, it does not run but just gives the same error message that the parameter was not declared. 

Solved. In the dataset properties ---> parameters, I typed the parameter name as @to_date and the value as [@to_date]. (This was what Chat GPT told me, unfortunately. :)). Today I luckily saw a web with a screenshot of this property and basedon that, I corrected the name to simply to_date (without the @ sign), and the value kept as before as  [@to_date]. This worked.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.