Forum Discussion

qazz12's avatar
qazz12
New Member
1 year ago
Solved

No parameter match for multivalue placeholder

Hi, I'm getting the No parameter match for multivalue placeholder  error message when I click Validate Query button for my query below. The weird thing is that the report runs fine despite this error. However I'm unable to add fields since I can't validate the query. I know the error is related to the RSCustomDaxFilter but I can't figure it out after searching extensively.

 

// DAX Query
DEFINE
VAR __DS0Core = 
CALCULATETABLE(
SUMMARIZE(
'GiftList',
'GiftList'[client_code],
'GiftList'[Gift_ID],
'GiftList'[transaction_date],
'GiftList'[trans_fiscal_yr],
'GiftList'[gift_coding],
'GiftList'[Mailed_FY],
'GiftList'[Final_Appeal],
'GiftList'[orig_appeal],
'GiftList'[transaction_amount],
'GiftList'[Special_Exclude_Notes]
),
RSCustomDaxFilter(@ClientCode,EqualToCondition,[GiftList].[client_code],String),
RSCustomDaxFilter(@GiftFY,EqualToCondition,[GiftList].[trans_fiscal_yr],Int64)
)
 
 
 
EVALUATE
__DS0Core
 
ORDER BY
'GiftList'[client_code],
'GiftList'[Gift_ID],
'GiftList'[transaction_date],
'GiftList'[trans_fiscal_yr],
'GiftList'[gift_coding],
'GiftList'[Mailed_FY],
'GiftList'[Final_Appeal],
'GiftList'[orig_appeal],
'GiftList'[transaction_amount],
'GiftList'[Special_Exclude_Notes]
  • Hey qazz12 ,

    It seems RSCustomDaxFilter is not supported in your environment, particularly for Power BI or non-paginated reports. Try this:

     

    1. Use Standard Filters: Replace RSCustomDaxFilter with a FILTER in DAX:

      CALCULATETABLE(
         SUMMARIZE(
            'GiftList', 
            'GiftList'[client_code], 
            'GiftList'[Gift_ID], 
            'GiftList'[transaction_date], 
            'GiftList'[trans_fiscal_yr], 
            'GiftList'[gift_coding],
            'GiftList'[Mailed_FY], 
            'GiftList'[Final_Appeal], 
            'GiftList'[orig_appeal], 
            'GiftList'[transaction_amount], 
            'GiftList'[Special_Exclude_Notes]
         ), 
         FILTER('GiftList', 'GiftList'[client_code] = @ClientCode && 'GiftList'[trans_fiscal_yr] = @GiftFY)
      )
    2. Verify Parameter Types: Ensure @ClientCode and @GiftFY are set as multi-value parameters if needed.

    3. Validate Query: If still facing issues, use hardcoded values temporarily to validate the query, then revert back to the parameters.

     

     

    If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


    Best Regards,
    Nasif Azam

5 Replies

  • Hey qazz12 ,

    The issue is related to the use of RSCustomDaxFilter, which is primarily used by paginated reports (Report Builder or SSRS) for parameter binding. The error message means that the report expects a multi-value parameter, but the provided filter is being passed as a single value, and the engine can't resolve it during validation. Try the below solutions:

     

    1. Check Parameter Types: Make sure that both @ClientCode and @GiftFY are configured correctly in the report as either single-value or multi-value parameters in sync with what the RSCustomDaxFilter expects.

    2. Avoid Validation for Now: Since the report runs as expected, you can skip the Validate Query step and continue developing your report. It's more of a limitation in the designer rather than a critical issue.

    3. Workaround: If you must use Validate Query (e.g., to add fields or auto-generate the dataset schema), temporarily replace the parameterized filter with a hardcoded value like:

      RSCustomDaxFilter("12345",EqualToCondition,[GiftList].[client_code],String)

      Then validate and add fields, and afterward revert it back to use the parameter.

     

    For Detailed Information:

    RSCustomDaxFilter Function in Paginated Reports (Docs)

    Troubleshooting Multivalue Parameters in Paginated Reports

    Create Paginated Reports with DAX Queries

    Add Dataset Fields in Report Builder

     

     

    If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


    Best Regards,
    Nasif Azam

    • qazz12's avatar
      qazz12
      New Member

      Thanks Nasif, I tried the solution of hard coding but is getting the below error.

       

      Query (18, 1) Failed to resolve name '<ccon>RSCustomDaxFilter</ccon>'. It is not a valid table, variable, or function name.

       

      • Nasif_Azam's avatar
        Nasif_Azam
        Icon for Super User rankSuper User

        Hey qazz12 ,

        It seems RSCustomDaxFilter is not supported in your environment, particularly for Power BI or non-paginated reports. Try this:

         

        1. Use Standard Filters: Replace RSCustomDaxFilter with a FILTER in DAX:

          CALCULATETABLE(
             SUMMARIZE(
                'GiftList', 
                'GiftList'[client_code], 
                'GiftList'[Gift_ID], 
                'GiftList'[transaction_date], 
                'GiftList'[trans_fiscal_yr], 
                'GiftList'[gift_coding],
                'GiftList'[Mailed_FY], 
                'GiftList'[Final_Appeal], 
                'GiftList'[orig_appeal], 
                'GiftList'[transaction_amount], 
                'GiftList'[Special_Exclude_Notes]
             ), 
             FILTER('GiftList', 'GiftList'[client_code] = @ClientCode && 'GiftList'[trans_fiscal_yr] = @GiftFY)
          )
        2. Verify Parameter Types: Ensure @ClientCode and @GiftFY are set as multi-value parameters if needed.

        3. Validate Query: If still facing issues, use hardcoded values temporarily to validate the query, then revert back to the parameters.

         

         

        If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


        Best Regards,
        Nasif Azam