1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to pass parameters in embedded Power BI paginated report?

Discussão em 'Angular' iniciado por ps0604, Maio 18, 2025.

  1. ps0604

    ps0604 Guest

    I'm using the Power BI Angular library to embed a paginated report with no problems, as defined in https://github.com/microsoft/PowerBI-client-angular

    <powerbi-paginated-report
    [embedConfig]="embedConfig"
    [cssClassName]="'container'">
    </powerbi-paginated-report>


    Problem happens when I add parameters to the paginated report. I defined Internal parameters without defaults, where the intent is to pass these parameters when the report is embedded/rendered.

    I tried two methods, unsuccessfully:


    1. Append to the Embed URL string the parameter name and values:

      embedUrl = embedUrl + '&rp:fromsk=20&rp:area=A'

    2. Define the parameters in the embedded config object:

      this.embedConfig = {
      type: 'report',
      accessToken: '**********',
      tokenType: models.TokenType.Embed,
      permissions: models.Permissions.ReadWrite,
      viewMode: models.ViewMode.View,
      settings: {
      parameterValues: [
      { name: "area", value: "ab" },
      { name: "fromsk", value: 20 }
      ]
      }
      };

    The problem is that either the parameters are ignored or the page is blank. What method should I use? How to make this work?

    Continue reading...

Compartilhe esta Página