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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Issue passing multiple values to DAX query in Power BI Report Builder

I have a DAX query that I am able to pass multiple values in DAX Studio but when I use the same query in MS Power BI Report Builder and pass values from a multi-select parameter, it fails. It works for a single select parameter or if I only pass only 1 value. Any hints or insights on what may be causing this?

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , how are you trying to pass, have you used  " in @param " or  = @ param ?

 

Refer

https://docs.microsoft.com/en-us/power-bi/paginated-reports/report-builder-parameters

 

Anonymous
Not applicable

@amitchandak, in DAX query, I have a VAR table that I am using to filter records where @RY parameter is tied to another dataset that is shown to users to select year from. If user selects one year, the query works just fine but if user selects more than one year, it does not return any value. 

 

DEFINE
VAR __DSRYFilterTable =
TREATAS({ @RY }, 'W_DATE_D'[YEAR])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors