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

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

Reply
AndriyK
Helper II
Helper II

Issues with DAX dataset/query parameters in Power BI report Builder with live connection to SSAS

Hello,

 

i'm having intermittent issues with DAX dataset/query parameters in Power BI report Builder with live connection to SSAS.

i was able to build the custom dataset query with parameters and it is running fine in the report and i data is populated into the matrix visual.

but when i go to the query editor and trying to run it, i get the errors that parameter is not declared.

but it is declared and when i run the report, is runs without any errors.

i need to modify the query and add more fields, but i'm not able to view results in query editor in the Power BI Report builder.

 

Could you please let me know how i can fix it.

Thank you,

Andriy 

 

Query:

EVALUATE
CALCULATETABLE (
SUMMARIZECOLUMNS (
'Display Date'[CalendarYear],
'Display Date'[CalendarYearMonth1],
'Display Date'[CalendarYearMonth2],
"EBGPAY",
CALCULATE (
[EBGPAY Sum],
'Display Measures'[Display Measures] = "Display Calendar Periods"
)
),
'Date'[CalendarYearMonth2] = @DateCalendarYearMonth2,
'Employee'[Employee] = @EmployeeEmployee
)
ORDER BY 'Display Date'[CalendarYearMonth1]

 

AndriyK_11-1709848972607.png

 

 

AndriyK_8-1709848660507.png

 

AndriyK_4-1709848550638.png

 

AndriyK_5-1709848572216.png

 

AndriyK_9-1709848713714.png

 

 

AndriyK_10-1709848786155.png

 

 

 

 

 

1 ACCEPTED SOLUTION
AndriyK
Helper II
Helper II

hi @Anonymous ,

thanks a lot for your reply!

The parameters were set up already. they are shown on the 3rd screenshot in my initial message.

 

i was expiriencing this issue all day yesterday, but today after the laptop restart everything is working fine.

looks like the issue could be related to my laptop, but not sure what was causing it.

 

Thanks again,
Andriy 

 

View solution in original post

2 REPLIES 2
AndriyK
Helper II
Helper II

hi @Anonymous ,

thanks a lot for your reply!

The parameters were set up already. they are shown on the 3rd screenshot in my initial message.

 

i was expiriencing this issue all day yesterday, but today after the laptop restart everything is working fine.

looks like the issue could be related to my laptop, but not sure what was causing it.

 

Thanks again,
Andriy 

 

Anonymous
Not applicable

Hi @AndriyK ,
Based on your description and the provided screenshot of the error, I looked up the documentation for the issue in question, to add a parameter, click on the Parameters toolbar button in the Query Designer window. From here you can add the parameter name and default value.

vheqmsft_0-1709883681061.png
You can refer to this document for more information

reporting services - The query contains the XXXXXName parameter, which is not declared. SSRS2008/MDX...

 

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly



Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.