Giter Club home page Giter Club logo

powerbi-tools-for-capacities's Introduction

Welcome To the Power BI Premium and Embedded Tools and Utilities Repository

This repository is meant to host tools and utilities designed to improve all aspects of Power BI capacity managment and lifecycle.

Available Tools (as of July 2019)

Load Testing Tool.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

powerbi-tools-for-capacities's People

Contributors

davidmagarms avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerbi-tools-for-capacities's Issues

Login-user is not defined in Setup_Load_Test.ps1

Getting below error after providing the number of reports to configure.

Login-PowerBI : The term 'Login-PowerBI' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\Jeby.Jacob\Downloads\PowerBI-Tools-For-Capacities-master\PowerBI-Tools-For-Capacities-master\RealisticLoadT
estTool\Setup_Load_Test.ps1:75 char:13

  • $user = Login-PowerBI
    

Testing a report with multiple tabs

What if you want to test a report with multiple tabs and you want to test the performance for each tab. Is it possible to do this currently?

thank you!

Question: Worst case scenario Vs Realistic Scenario

I was wondering if testing a report under the "Worst Case Scenario" would be good enough if it has multiple pages. Since only the first page of the report is generally displayed in the Chrome window that gets opened, would that be enough to load all the data in a report created with "Data Import" and no live connection to a backed DataSource? Would the % utilization shown by PowerBi-Embedded Metrics be a good way to determine what sized SKU would suit our needs best?

Thanks.

Chrome gets overloaded after approx. 50 page refreshes

I've set up the script without a problem and everything seems to work as expected. When I fire the Realistic Load Tool.ps1 my report starts rendering in about 2 sec. Passing the 20 page refreshes mark the approximate time of refresh keeps getting slower and slower and the most time is spent in "Loading report..." spinning wheel. After 50 refreshes the reported refresh time goes up to over 12 sec. Above 70 refreshes Chrome window becomes unresponsive and report is not rendering. Tracing data requests in SQL profiler is reporting the same approximate processing time of DAX query and moreover there are less DAX queries logged against data model as Chrome page refreshes pile up.

It means there is less traffic against the report and data model is not under pressure over time. This gives an indication that the delay is on client side. Anyone experienced the same problem?

cannot run the loadtest script

can launch RealisticLoadTestTool manually and opens in chrome with pbi report
but when i launch using powershell as run as admin, the chrome browser is launched but it comes blank..

New Filter Criteria

Can we filter the test by string-like (Region Name = MW, etc) instead of min and max values?

Error loading RealisticLoadTest

I've followed the instructions meticulously to try this tool.
Loaded "Power Bi Load Testing Demo.pbix" to a workspace and configured all the details of "PBIReport.JSON" with my url.
When opening the HTML, the report loads on the page, but I get the error in Chrome Dev Tools:
Failed to load resource: net::ERR_NAME_NOT_RESOLVED

RealisticLoadTest.html:250 Uncaught TypeError: Cannot read property 'models' of undefined
at EmbedReport (RealisticLoadTest.html:250)
at RealisticLoadTest.html:485

Also tried running several times: .\Update_Token_Only.ps1 in PowerShell but the result is the same.

Get-WmiObject Pre-Req Missing

When running the RealisticLoadTest tool, we see the following exception;

RuntimeException: C:\Users\adam.riddick\Downloads\PowerBI-Tools-For-Capacities-master\RealisticLoadTestTool\Run_Load_Test_Only.ps1:63
Line |
  63 |              $profile = ($profile+1) % $numberOfPhysicalCores;
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Attempted to divide by zero.

Cause by this line

(Get-WmiObject –class Win32_processor).NumberOfCores;

It appears there may be a missing pre-requisite to have Microsoft.PowerShell.Management loaded.

403 / 429 when using the Realistic Load Test tool

When running .\Run_Load_Test_Only.ps1 on a single report, a chrome window opens and the report fails to load, anywhere up to 15 times, before the report then loads and the test begins.

Typically this is with a 403, but we have also seen 429's being reported as the error. It seems the tool does try again, but as there is no warning it appears to the end user that something has gone wrong and they could cancel the test without knowing.

image

Simulating large number of users.

I’m trying to understand how the number of users simulation works. Read me mentions that (average of window load + estimated real time user use) / average of window load = real time user number.

I have 20 windows open. Each represents a different page in one report. Each of these pages loads at a different average time. How can I estimate how many average users are using this report if each page will provide a different user account?

Summing all those results seems unrealistic since it will be a very large user count.

My end goal is to simulate around 200 users on one workspace with multiple multi page reports.

Getting Blank Chrome windows

I'm testing a report (PBIX) with A1 SKU attached to a workspace.
After last prompt, it just launches Chrome window (blank). No report output. Just the frame with boxes.

Not sure what is missing. For Filters I have slicer
Enter Filter values separated by comma(,). Ex:TableName,ColumnName,100,1000: Date,Year,CY2019,CY2020

Filters not being applied

I'm able to run this tool. However, it seems filters are not being applied, no error is shown

In my PBIReport.JSON I can see:

reportParameters='{"reportUrl":"https://app.powerbi.com/reportEmbed?reportId=XXXXXX&groupId=XXXXXXX&config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly9XQUJJLVBBQVMtMS1TQ1VTLXJlZGlyZWN0LmFuYWx5c2lzLndpbmRvd3MubmV0IiwiZW1iZWRGZWF0dXJlcyI6eyJtb2Rlcm5FbWJlZCI6ZmFsc2V9fQ%3d%3d","filterStart":201901,"filterMax":201912,"sessionRestart":100,"filterTable":"cub vwPeriod","filterColumn":"AX_MONTH_SHORT"}';

which make sense to me.

Fact table is of course related to 'cub vwPeriod' table but the report iterate over and over again on the same period "201912" I see no changes when running on browsers

any idea?

Using Service Principal to run this scripts

Good Morning Greg,
Currently the load scripts is using AAD to authenticate, can we change the script to use ServicePrincipal ?
Or the LoadScript will not work with ServicePrincipal, period, it's just the way that it's setup ?

Just want to do a sanity check with you. Thanks!

cannot run the loadtest script

can launch RealisticLoadTestTool manually and opens in chrome with pbi report
but when i launch using powershell as run as admin, the chrome browser is launched but it comes blank..

Got this error: Cannot retrieve contributors at this time

Hello all,
It's my first time running this tool, and this error "Cannot retrieve contributors at this time" showed up in pop-up screen (attached) after I confirmed "y" in PS script that I "want to launch configured reports" and it didn't proceed. Appreciated your help or advice on this!
popup screen with error

Can't run Load Assessment Tool

I'm unable to run the Load Assessment Tool script. You mention Setup_Load_Test.ps1 in a few issues but I don't see it anywhere. When the Chrome browser opens, the URL and dashboard are empty. In looking in the debugging mode of Chrome (see below), it seems like the last line of the script isn't passing the arguments to Chrome.

image

Getting Duplicate Values in Slicer.

On adding custom data in the filter, I m getting duplicate values in the visuals.

"filters": [ { "filterTable":"Summary", "filterColumn":"Domain", "isSlicer":true, "filtersList":["domain0","domain1","domain10"] }, { "filterTable":"Summary", "filterColumn":"Template", "isSlicer":true, "filtersList":["template0","template19","template9"] ]
MicrosoftTeams-image (2)

Missing JSON files

Looks like missing JSON files:

PBIToken (JS Object File) file which stores Aad access token for the connections to work.
PBIReport (JS Object File) file which stores report parameters including report url, filter parameters.

could you double check

Filter Issue - Worst Case Tool

Hi Team
Am getting am Uncaught 'filters property is Invalid' error in the PBIESinglePageUOD_noADAL_event_filter_loop.html file. This appears to occur regardless of filter settings entered.
All prerequisites are in place (elevated and PowerShell plugins). Am logging onto a virtual machine (that has www and admin access) with a pBI service account. So all line of sight issues addressed.
Uncaught

Attached is basic pbix, filter is set for 'all pages'

Filter criteria: dimDates, dtmCalYear, 2013,2017

cb1.zip

Any light shedding appreciated

EDIT: This is also happening with Realistic Case Tool using demo pbix and filters

Cheers

Chris

GCC, GCC High, DOD

From what I can tell, this doesn't appear ready for GCC, GCC High and/or DOD. Is there any plans to ensure that this will run in the GCC, GCC High, DOD arena?

Thank you

Question : How to add RLS Tests

Hello, i'am wondering how can you add on the URL the RLS roles that can help to test reports with an RLS solution.
Thanks in advance !
BTW : very nice projet ! thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.