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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Smartin4
Regular Visitor

Power BI Report Builder Parameters Type mismatch error

Hello, 

I'm building a paginated report on Power BI Report builder using an SSAS cube as my data source. I'm having issues with some of my parameters. If I select ALL or just one value I don't get an error, but when I select two or more values it throws me the following error: 


The following system error occurred: Type mismatch.
----------------------------
Query execution failed for dataset 'TransactionsX'.
----------------------------
An error has occurred during report processing.
----------------------------
An error occurred during local report processing.

 

Has anyone else experienced this issue? I've been looking all over the place and I can't find a solution. 

Thank you, 

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

This is most likely caused by the fact that multiple  selections in parameters get passed as an array of values and the query engine expects a parameter to be passed as a string.

 

There are a couple of solutions to this, the simplest is using the PATHCONTAINS technique here:

https://prologika.com/ssrs-multivalue-parameters-in-dax/

 

But PATHCONTAINS is not the best for performance, the following solution involves more code, but produces faster queries:

https://blog.crossjoin.co.uk/2018/05/16/a-new-approach-to-handling-ssrs-multi-valued-parameters-in-d...

View solution in original post

4 REPLIES 4
lujii
New Member

Hi,

how can i amend my query , i didn't know  https://www.rapidtables.com/tools/notepad.html 

d_gosbell
Super User
Super User

This is most likely caused by the fact that multiple  selections in parameters get passed as an array of values and the query engine expects a parameter to be passed as a string.

 

There are a couple of solutions to this, the simplest is using the PATHCONTAINS technique here:

https://prologika.com/ssrs-multivalue-parameters-in-dax/

 

But PATHCONTAINS is not the best for performance, the following solution involves more code, but produces faster queries:

https://blog.crossjoin.co.uk/2018/05/16/a-new-approach-to-handling-ssrs-multi-valued-parameters-in-d...

Hi,

how can i amend my query , i didn't know  can anyone help me im facing the same Smartin4 issue with my parameters

 https://www.rapidtables.com/tools/notepad.html 

Thank you! I modified the filter expression and added the PATHCONTAINS and this worked! 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.