Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48515

Delay in applying filter in embedded

$
0
0

I am using power BI embedded in my web application. I am using javs script library 2.0 provided on Git. my filter is working as desired. The problem is report is loaded with all the data and filter is getting applied there after, and hence user will be able to have a glimpse of all records for which he soes not have access. How can I reduce this delay. We have also implemented RLS in data source which is a SSAS cube, how can we pass user information to PBI?

Follwoing is the java script code to call PBI report

 

var defaultFilter = {

            target: {

                table: "Table1",

                column: "Column1"

            },

            operator: "In",

            values: ["H "]

        };

 

var embedConfiguration = {

                type: 'report',

                accessToken:’Token’,

                id: ReportId',

                embedUrl: 'https://embedded.powerbi.com/appTokenReportEmbed',

                settings: {

                    filterPaneEnabled: true

                }

           };

 

            var $reportContainer = $('#reportContainer');

           

            var report = powerbi.embed($reportContainer.get(0), embedConfiguration);

            report.on('loaded', event => {

                report.getFilters()

                  .then(filters => {

                      filters.push(defaultFilter);

            return report.setFilters(filters);

        });

        });

 


Viewing all articles
Browse latest Browse all 48515

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>