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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Report Builder -Paginated report -Power BI Dataset Dax

Hi

 

Using Power BI Dax query from Power BI shared data set which is created in Power BI desktop report.

 

Dax query used in paginated report dataset as below sample. I have to pass parameter from 'Calander'[Year] to summrized datset dax query to filter by year. 

 

can you please let me know how do i pass parameter to dax query below. it does not look rscustomfilter not working which is only for report query builder.

 

Thanks

 

// DAX Query
DEFINE
MEASURE Table'[abc] =
(/* USER DAX BEGIN */
CALCULATE(
max(Table'[abc]),ALLEXCEPT(Table,Table'[abc]))
/* USER DAX END */)

VAR __DS0Core =
SUMMARIZECOLUMNS(
'Account'[AccountId],
'Depa'[Name],
'Calander'[Year],
"SumAmount", CALCULATE(SUM(Table'[amount])),
RSCustomDaxFilter(@Year,EqualToCondition,'Calander'[Year],String)
)

 

EVALUATE
__DS0Core

ORDER BY
Account'[AccountId],
'Depa'[Name],

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have managed to solve this multip parameter values passing. 

 

apply Rscustomer fileter  at dataset properites section 

inplace of TREATAS({@Year}, 'FiscalPeriod'[FiscalYear])

 

below is the correct format code for Rscustom filter

RSCustomDaxFilter(@Year,EqualToCondition,[FiscalPeriod].[FiscalYear],String).

 

Please note that if you apply at query level, it won't work . Make sure replace treats command with Rs custom filter at query properites of data set.

 

It is strange that after applying above steps, you notice query still has treats command and rscustomfilter at query properties.  

 

this trick works.

 

Hoep this helps

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I have managed to solve this multip parameter values passing. 

 

apply Rscustomer fileter  at dataset properites section 

inplace of TREATAS({@Year}, 'FiscalPeriod'[FiscalYear])

 

below is the correct format code for Rscustom filter

RSCustomDaxFilter(@Year,EqualToCondition,[FiscalPeriod].[FiscalYear],String).

 

Please note that if you apply at query level, it won't work . Make sure replace treats command with Rs custom filter at query properites of data set.

 

It is strange that after applying above steps, you notice query still has treats command and rscustomfilter at query properties.  

 

this trick works.

 

Hoep this helps

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.