Forum Discussion
Power BI Report Builder Parameters Type mismatch error
- 7 years ago
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:
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: