Skip to content

Set-SemanticModelParameters doesn't work with numeric parameters #367

@jozsefbraun

Description

@jozsefbraun

Hi Team!
I have an issue with the current implementation of Set-SemanticModelParameters function in fabricps-pbip (https://github.com/microsoft/Analysis-Services/tree/master/pbidevmode/fabricps-pbip). It works perfectly fine for text type parameters, but it adds an unnecessary quotation for numeric parameters as well and breaks the M queries in my partitions as it cannot implicitly convert numbers. I can only assume that it breaks for other type of parameters as well
Can you please update the logic to do this only for Type = "text" only?
$modelExpression.Expression = $modelExpression.Expression -replace """?(.*)""? meta", """$parameterValue"" meta"

Thanks!
Jozsef

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions