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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
anshusaketsingh
Frequent Visitor

Query To Pass Multiple Values From a Parameter in Paginated Report Using RSCustomDaxFilter

I am trying to create a Paginated report with Category as filter.

Its working fine with DAX file but they can only accept 1 value at a time. I switched to RSCustomDaxFilter but somehow getting the below error. 

Do anyone know how to fix it?

 

anshusaketsingh_0-1720039804194.png

 

Query For Multiple Values From a Parameter (Not Working)-

DEFINE
VAR FilterTable =
RSCustomDaxFilter(@Category, EqualToCondition, [Orders].[Category], String)

EVALUATE
SUMMARIZECOLUMNS (
'Orders'[Category],
'Orders'[Sub-Category],
FilterTable,
"SumSales", CALCULATE ( SUM ( 'Orders'[Sales] ) )
)
ORDER BY
"SumSales" DESC,
'Orders'[Category],
'Orders'[Sub-Category]

1 ACCEPTED SOLUTION
anshusaketsingh
Frequent Visitor

So, apparently it is some weird bug in PowerBI Report Builder.

Rewriting the same query without space for RSCustomDaxFilter like below solved the problem.

 

DEFINE
VAR FilterTable =
RSCustomDaxFilter(@Category,EqualToCondition,[Orders].[Category],String)

EVALUATE
SUMMARIZECOLUMNS (
'Orders'[Category],
'Orders'[Sub-Category],
FilterTable,
"SumSales", CALCULATE ( SUM ( 'Orders'[Sales] ) )
)
ORDER BY
"SumSales" DESC,
'Orders'[Category],
'Orders'[Sub-Category]

View solution in original post

3 REPLIES 3
anshusaketsingh
Frequent Visitor

So, apparently it is some weird bug in PowerBI Report Builder.

Rewriting the same query without space for RSCustomDaxFilter like below solved the problem.

 

DEFINE
VAR FilterTable =
RSCustomDaxFilter(@Category,EqualToCondition,[Orders].[Category],String)

EVALUATE
SUMMARIZECOLUMNS (
'Orders'[Category],
'Orders'[Sub-Category],
FilterTable,
"SumSales", CALCULATE ( SUM ( 'Orders'[Sales] ) )
)
ORDER BY
"SumSales" DESC,
'Orders'[Category],
'Orders'[Sub-Category]

Anonymous
Not applicable

Hi @anshusaketsingh ,

Based on the description, try to select the allow multiple values for parameter.

vjiewumsft_0-1720080642502.png

Viewing the following documents to learn more information.

Solved: Paginated Report - multiple parameter via DAX quer... - Microsoft Fabric Community

Add a multi-value parameter to a paginated report - Power BI | Microsoft Learn

 

Best Regards,

Wisdom Wu

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

Already done that , thats not an issue. The parameter is getting populated correctly with multiple value.

 

I checked it with Filter query and it is giving output for same parameter but it is not able to handle multiple values. It only works if I select 1 value at a time.

 

DEFINE
VAR FilterTable = 
                FILTER(
KEEPFILTERS(VALUES('Orders'[Category])),
('Orders'[Category] IN {(@Category)})
)

 

anshusaketsingh_0-1720085066431.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors