Quantcast
Channel: Developer topics
Viewing all 17950 articles
Browse latest View live

Monitor Schedule Refresh of Reports

$
0
0

Hello everyone,

 

I'm just wondering if there an easy way to monitor the schedule refresh of the report? 

 


Replace powerbi report on same div with a new one

$
0
0

We do have application where user can select from a few reports and load them over ajax on a same reportContainer div.

We have been using powerbi js for quite a long time, it was version -- v2.4.7

It worked pretty well, stable, fast and the most important it could use same created iFrame for a new report without reloading it from scratch.

Here is the code that worked:

var config = {
          type: 'report',
          tokenType: models.TokenType.Embed,
          accessToken: embedToken,
          embedUrl: embedUrl,
          id: report_id
};
powerbi.embed(reportContainer,config);

Recently we started Powerbi js version -- v2.6.5

It basically can't use same div container, in order to place a new report I need to reset it first with:

powerbi.reset(reportContainer); 
OR
powerbi.embedNew(reportContainer, config);

Well, it works, but it takes time to load all the frame every time and it looks much slower compared with old version of Powerbi JS.

Also I am having this error on Javascript level when doing powerbi.reset(reportContainer):

Error: target window is not provided.  You must either provide the target window explicitly as argument to request, or specify default target window when constructing instance of this class.

Maybe this is something that down the speed?

Is it possible to make it faster? Or maybe mine modus operandi is not the good one and I should use something different?
Many thanks

 

create slideshow card visualization

$
0
0

I am looking for a way in PowerBI (standard or custom visualization) to create a slideshow card. We have internal and external surveys that include both quantitative data and qualitative data. I have been asked to create a report where the quantitative data is shown in standard visualizations, but they would like to scroll through the qualitative responses. 

 

Here is a screen cap video of what my end users have seen and asked if I could recreate.

 

Screen Cap Link

 

Thanks!

Power BI Powershell admin cmdlet

$
0
0

Unable to run powershell admin cmdlet after installing the powershell power BI module.

It is throwing error error when trying to run Login-PowerBI cmdlet

Power BI Embed Dashboard - no data shown: CORS Error for subscribe

$
0
0

Hi,


I have an error Embedding Power BI dashboard. The tiles show up but the data is not.

It has a CORS Error.

 

OPTIONS https://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe

 

Response: 200


Access-Control-Allow-Headers: Accept,Content-Type,Authorizat…-PowerBI-TryLoadHomeDashboard
Access-Control-Allow-Methods: POST
Access-Control-Allow-Origin: https://app.powerbi.com
Access-Control-Expose-Headers: X-PowerBI-Error-Info,X-PowerBI-Error-Details
Access-Control-Max-Age: 300
 

POST https://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe

Response: 401

 

Access-Control-Allow-Origin: https://app.powerbi.com
Access-Control-Expose-Headers: X-PowerBI-Error-Info,X-PowerBI-Error-Details
Cache-Control: no-cache, no-store, must-revalidate
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-PowerBI-Error-Info: TokenExpired

 

I am not sure why the error info says TokenExpired when the app has just started.

 

Any ideas?

different reports for different users - Power BI Embedded App Owns Data

$
0
0

How would i go about allowing my users to create and use their own personal custom reports inside an application.

 

At the moment on a basic level I can see it working as the user creates a report and then I would store the report ID and userId together then when the user would like to retrieve the report a call would be made to the api through the power bi tenant to retrieve the reports for the user.

 

My question; am i heading in the right direction, how scalable is this and what are some limitations I might come across?

 

 

Power BI Embed - C# Core - This package may not be fully compatible with your project.

$
0
0

Hi All,

 

I am developing a web application where I am using Angular and C#. I am trying to generate the embed token inside the application but I am facing the attached issue.

 

Capture.PNG

 

Do you know how can I fix it?

 

Thank you, Everyone for the support.

 

Regards,

 

Rafael

PowerBI embedded report filters not passed with bookmarks

$
0
0

We are using PowerBI Embedded with a multi-page report.  On page load, we set report level filters using the following syntax:

 

{
  "responseCode": "RES.20000",
  "responseMessage": "Success",
  "data": {
    "token": "xxxxxxxxxxxxx",
    "embeddedReportURL": "<report url>/ReportSection",
    "reportId": "<report id>",
    "filters": [
      {
        "table": "Client",
        "column": "ClientID",
        "value": "<some guid>"
      },
      {...}
    ]
  }
}

 

This sets the filters correctly for that page.  However, when use a bookmark / button to access another page, the filters are not propogated.  Is this the correct way to set report level filters?  Is there a work around if this is the expected behavior?

m


Using selection date as cut-off point for open balances

$
0
0

Hello,

 

I would like for my Pivot table to use a user selection as a cut-off point for the data presented. 

 

For instance, if I have a client who owes money from September, upon selection of October, I would like to view the balance due from both September AND October. However, anything beyond October would be ignored. 

 

I believe my issue lies in the relationship between my Fact and Date Dimension (Many-to-one respectively). The way I perceive this working is the relationship is only taken into account prior to the selected value, otherwise ignore it. The reality of the situation is that the selection is being considered so no prior months are included. 

 

I've tried the ALL, ALLEXCEPT, and CROSSFILTER Functions to no avail. 

 

Here is my code:

CALCULATE(sum('Deliver TRANSACTION_FACT_UNION'[Amount]),
'Deliver TRANSACTION_FACT_UNION'[TxnType] = "Invoice",
FILTER('Deliver TRANSACTION_FACT_UNION','Deliver TRANSACTION_FACT_UNION'[TxnDate] <= [Open Invoice Date Slicer]),
'Deliver INVOICE'[IsPaid] = false(),
'Deliver INVOICE'[IsPending] = false(),
'Deliver TRANSACTION_FACT_UNION'[TransactionSummaryFlag] = TRUE())

 

 

Any suggestions?

 

Thanks!

META: I didn't want to change my Forum account to my Company Power BI Account

$
0
0

HI I just logged in to the forum and it's forced me to change my forum login to my work office 365 account. I don't think I want this, what happens to my forums account if I change to a different company?

Can not get Access Token to use with PowerBI API

$
0
0

Hello, 

I am having trouble with trying to generate an access token for PowerBI JavaScript API in an app-owns-data scenario. 

Following the example, I got the whole process working (with a new, custom tenant as said by the instructions).

 

Now, I need to move it onto the real tenant that it is being implemented on. However, when I try to get a token like before, it spits out an error saying that my username or password is incorrect, when I know for sure that it is not. 

 

Here's an example of the code I'm using to query for one: 

 

 

 

var settings = {

    "url": "https://login.microsoftonline.com/common/oauth2/token",

    "method": "POST",

    "headers": { "Content-Type": "application/x-www-form-urlencoded" }

}

 

settings['data'] = "resource=https%3A%2F%2Fanalysis.windows.net%2Fpowerbi%2Fapi&client_id=(azurenativeapiapplicationid)&grant_type=password&username=fake@fake.com.au&password=notrealpassword&scope=openid";

 

$.ajax(settings).done(function(result){console.log(result)});

 

 

 

ES6 to javascript backwards compatible

$
0
0

When trying to load the embedded report in the Chrome version 44, I met this issue

 

reportEmbed:104 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
reportEmbed:257 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
reportEmbed:478 Uncaught ReferenceError: uid is not defined
reportEmbed:488 Uncaught ReferenceError: powerbi is not defined

...

reportEmbed.min.js:1 ERROR ReferenceError: clusterUri is not defined
at Object.t [as createReportEmbedTelemetryHostService] (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.bundle.min.js:29:20684)
at Object.<anonymous> (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.bundle.min.js:28:5742)
at Object.invoke (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:561:390)
at Object.$get (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:559:3)
at Object.invoke (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:561:390)
at https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:563:158
at d (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:560:310)
at e (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:561:39)
at Object.invoke (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:561:124)
at https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:563:158J @ reportEmbed.min.js:1
reportEmbed.min.js:1 ERROR Error: Uncaught (in promise): ReferenceError: clusterUri is not defined

 

PowerBI web portal is using ES6 syntax in https://app.powerbi.com/13.0.7149.169/scripts/reportembed.bundle.min.js. And the browser does not support it yet. It causes the issue.

 

Do we have a configuration option to tell PowerBI server to load an javascript backwards compatible version instead?

 

Any ideas? Thanks.

Export CSV to SFTP

$
0
0

Hello,

I have a table in my workspace which needs to be set to export every 30 minutes in CSV format to a SFTP location.

 

I do not see the option to have this scheduled and define the output as CSV or define a output location.

 

Is it true to say its not supported?

 

Thanks

Error when developing Power BI Custom Visual

$
0
0

Hi All,

 

I am facing below error when I start the pbiviz.erro.jpg

 

 

 

May I know how to solve this? Thank you.

 

Regards,

Niket

 

Force report to show no data at startup

$
0
0

Is there any way I can have a report initially not show any data? Idea is tha user chooses specific criteria from filters and then visuals are updated. I have a report that runs OK in our main offices, it pulls all data and then user filters by Region, Location, Employee and dates. My concern is when the report is rolled out to other locations which have way slower bandwith it will take a lot of time to render the report. This is a similar approach to SSRS where the report only renders with the user's selection of filter/parameters criteria which makes the report only pull the necessary data from the database.

 

All of the Power BI reports being developed use Import mode (cached data). Running Power BI Desktop Aug 2018 and same Report Server version (On premise).


drill through filters

$
0
0

Hi

 

I have a Pic chart of a student who fees status = paid -teacher wise.

for that, I have use teacher name and a measure created on a student status where fees status =Paid 

 

but when I drill through on graph teacher name the table shows the all the student under that teacher with both fees status is paid and unpaid.

 

I want to drill through on both teacher name and fees status =Paid.

 

 

Kindly Help.

 

Thank you in advance.

 

Show % Change between current year month and previous year month

$
0
0

Hi all - Could the community help me with this? The "% Change" in the table below demonstrates the 'new quick measure' of month-over-month change. I was asked to change this to display the current year's month to the previous year's month. Anyone have an idea of how this could work? 

 

Capture.JPG

Accessing PowerBI model

$
0
0

Hello everyone,

 

Is there a way to access a model from Visual Studio and make changes?

Stream data from local SQL right into PowerBi Online

Updating parameters through the service API

$
0
0

We are using parameters to change our database dynamically in reports deployed to the Power BI service. It works great. Now I'd like to be able to do more through API calls as opposed to manually updating things in the service.

 

I'm using Postman for all my testing and can authenticate, and get a token, list groups, reports, and datasets, and even dataset parameters no problem, but when trying to make a call to update the parameter values I get an error, and I can't find any information about it.

 

Once authenticated I'm making the following call

https://api.powerbi.com/v1.0/myorg/groups/xxxmygroupidxxx/datasets/xxxmydatasetidxxx/Default.UpdateParameters

 

with a json body of

{
  "updateDetails": [
    {
      "name": "DatabaseServer",
      "newValue": "xyz"
    },
    {
      "name": "DatabaseName",
      "newValue": "123"
    }
  ]
}

 

and it returns:

{
    "error": {
        "code": "InvalidRequest",
        "message": "This operation is only supported for the dataset owner"
    }
}

 

 

which I don't really understand as I am the dataset owner

Viewing all 17950 articles
Browse latest View live


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