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

Refresh your dataset(s) automatically when you open Power BI app in iOS


User rights

$
0
0

Hi,

 

We have the following project with power bi, to quickly explain:
-We, software developpers, create report templates with power bi desktop, and we publish them to be available to our customers
-Our customers send their data with the Power Bi Rest API, but their data is only available for their own users linked to each customer. Each customer has the same structure for the data.
-The customer must only see the data concerning him but can work or chose among the models we create.


What's the best way to do it?
Is it necessary to create one workspace per customer and publish each model in each workspace?
Or is it possible to create one workspace and allow each customer to work only with his own data?

Thanks for your help

Need help with "user owns data" JS report embedding

$
0
0
Hi all,
I would like to use the js sdk for embedding several reports analytics on my WordPress website so power bi pro users will be able to watch after they log in to their Microsoft account.
 
I want to have the same behavior / flow as we get when using the simple secure i-frame tag to embed reports:
 
1. User get to my web site
2. Inside the reports display container \ div, user first have to sign in to his Microsoft account
3. only after user sign in to his Microsoft account he can actually see the report.
 
I was able to create an azure app and function based on these tutorials:
 
but in the tutorials example code authentication \ login is already being done by the app function (provided in the toturial example) that i have generated on azure portal, looks like this is the "app owns data" approach.
 
Can anyone help and provide some guidelines or code examples for what i'm trying to create?
My goal is to use JS for embedding several reports on my website and allow visitors to watch them only after they have sign in to their Microsoft account ("user owns data" approach)
 
I know that access token is what i need here, not sure how should i retrieve it and how to use it in order to display a report after user is signed in to his Microsoft account

API REST RESPONSE TIME

$
0
0

Hello,

 

for a project we are using the API REST to upload a PBIX into a workspace of another tenant.

 

Depending the hour of the day, the treatment is succesfull, takes ages, or doesn't work.

 

Anyone encountered this matter ? what did you do ?

Bing Maps API - Merge Query

$
0
0

I have two tables in my powerbi desktop application.

 

Table 1:

200K rows with duplicate address values since customers at the same address have multiple accounts. 

Table 2:

Copy of Table 1. All columns except address have been removed. Duplicates of address were then removed. 30K rows of unique addresses remain. 

 

I have sucessfully connected to Bing Maps API and imported the Long/Lat for each unique address in Table 2. Now that i have the long/lat for all 30K rows in Table 2, I want to merge Table 2 with Table 1 on the address field to bring in the Long/Lat for each row in Table 1. 

 

Issue is, when appling this merge, the query applier starts merging the tables BUT also is looking up each row with Bing Maps for a second time!!! 

 

Anyone know how to add a step (in my case merge tables) with Bing Maps data in a table with out it querying the data with Bing Maps every time a new step is added? 

 

Thanks ! 

Unable to delete Data Source in PowerBI Service using PowerBI API

$
0
0

Hi,

 

I have uploaded a pbix file that uses Mixed Storage Mode (Direct Query and Data Import) to the PowerBI Service. The file has only one Azure SQL data source, say Dev-DataSource. 

 

After the upload I need to update the connection string/credentials so that I can setup scheduled refresh from another source, QA-DataSource. I am able to add the new data source using parameters, but when I try to delete the old one (DevDataSource) it does not work. I have tried deleting the old data source in the following ways:

 

Is there a way to delete the old data source and replace it with a new one in PowerBI service? I am trying to avoid doing this in PBI Desktop as I need to automate this step, and need to provision the pbix for multiple clients.

 

Programatically Control Share report

$
0
0
 

Does Power BI have rest api's to control share report feature in app.power bi.

2019-11-18_23-13-16.png

 

Scenario:

I have an  power bi embed application (built using power bi rest api's) which lets users create workspace,upload and create reports in power bi.

 

we want to control the share feature (i.e. lets only few users to share or disable share for some reports) in app.power bi for the reports that are getting uploaded from our embed application.

is there a way or rest api's around that?

 

Embedded tool authentication error

$
0
0

I'm using the Power BI onboarding Embed tool (https://app.powerbi.com/embedsetup/appownsdata) and the sample code.  When I try to access the Power BI report I get the message below (Unauthorized 401).  The user credentials used in the code is an Admin of the Workspace.  I have removed mutli-factor authentifcation from the user.  Any ideas how to resolve this? Thank you.

Error

            Status: Unauthorized (401)
Response: 
RequestId: 7ba996d8-5b40-4103-9676-c150d5e8e959

 


Web scrap

$
0
0
 

Hi All,
and @v_lid_msft 

I'm trying to scrap data from flat renting/selling website
Bellow is the total list of all features and HTML "data-name" that flat can have in that web site

Features                           data-name
"Балкон остеклен"           flat.balcony_g
"Дверь"                            flat.door
"Телефон"                        flat.phone

"Интернет"                      inet.type
"Парковка"                     flat.parking
"Мебель"                         live.furniture
"Пол"                                flat.flooring
"Потолки"                       ceiling
"Безопасность"               flat.security
"В прив. Общежитии"    flat.priv_dorm
"Разное"                          flat_options

But ad can contain less features, example is below. 

image.png

https://krisha.kz/a/show/54195634

= Html.Table(Source, {{"Tel", "DL:nth-child(1) > DD"}, {"Парковка", "DL:nth-child(2) > DD"}, {"Без", "DL:nth-child(3) > DD"}}, [RowSelector="DL:nth-child(1) > DD"])

But the thing is, if in the next ad another owner added "flat.balcony_g" or "flat.door" feature/s then everything will be filled one by one, it is not right. Example how it is and how it should be below:image.png
I tried to excess to the right data and stick data by doing following:
= Html.Table(Source, {{"Tel", ".offer__parameters >dl> [data-name=""flat.phone""]"}}, [RowSelector=".offer__advert-title"])

But I can get only "Телефон", and cant find solution to access to "отдельный"

Please help with this

 

Where to select pbiviz.json?

Power BI in Microsoft Dynamics NAV

$
0
0

Hey everyone,

 

I have trouble loading the Power BI report in Microsoft Dynamics NAV 2018 in a reasonable time. The database is on a Azure Server.

 

I created a simple report with few data and only one visual but the problem persists. Also I tryed to see if the database is the problem and used a Cronus, but the same problem occurs.

 

Thanks for any help,

 

Joshua

Report with 11GB

$
0
0
I have a very large report, 11GB (.Pbix), but I can't publish to the web because my Power BI is free.
Could someone help me to solve this problem, if I re-create the report with DirectQuery instead of Import would my problem be solved?

thank you all
_Keny

Dynamic Calculation of YoY value based on two slicers for two different visuals

$
0
0

Hi!

I have a table data displaying YoY difference between two years, i.e. This year and last year which is defined in the formulas. There are two line charts below this table , one displaying the Last year's Transaction for the companies and the second one for tihs years companies.

What I am trying to achive: To be able to not restrict the report to just "This Year" and "Last Year", the report should be able to provide selections via a slicer to enable selecting any year I want to see on these two charts and based on the selction of the Year on charts the table above these charts displaying YoY values dynamically chnage. Currently it is restricted to "This Year" i.e. 2019 and "Last Year" i.e. 2018 and I am not able to select or chnage years. Even if I put individual slicers for each line chart which works fine on the charts , but the YoY values on the tavble above does not reflect that YoY values.

Help will be greatly appreciated.

 

I want to be able to select any year on those two individual charts and the table above should refrelct the YoY based on the Years selected on the teo line chart's below.

 

Please find attached the .pbix file.

 

 

Kind Regards

Embed report fails to load intermittently with GroupNotAccessible error

$
0
0

We are using the powerbi-client npm package to embed PowerBI report in our site.  Everything works fine except for one report where it first loads with "Content isn't available" error but upon subsequent page reloads (a few times), it will eventually load the content, and then intermittently fails again.  Loading the same report from the powerbi.com site has no such problem.

 

When inspecting the Network trace from F12, we find the following often failing with HTTP 401:

https://df-msit-scus-redirect.analysis.windows.net/explore/reports/752fa92e-48a3-4ddd-83a1-cfd850fd9893/modelsAndExploration?preferReadOnlySession=true

 

But usually followed by some successfully requests (HTTP 200) for the same call/url.

 

From the failing calls, the response header contains these info, especially the GroupNotAccessible error:

  • access-control-expose-headers: RequestId
  • content-length: 0
  • date: Wed, 20 Nov 2019 00:01:42 GMT
  • requestid: da4e467b-07f6-46ab-b7b5-3910b650692b
  • status: 401
  • strict-transport-security: max-age=31536000; includeSubDomains
  • x-content-type-options: nosniff
  • x-frame-options: deny
  • x-powerbi-error-info: GroupNotAccessible

Any way to fix this intermittent issue?

Dashboard from Power BI into your application - Question

$
0
0
Hello everyone,
Im following the next tutorial of Guy In a Cube: https://www.youtube.com/watch?v=XSAHwE21Buk
I am wondering if my idea its possible to perform:
In my app, using C#, I open a word template which contains the typical information of a standard report. I want to insert in mid of that template, specific images (yes, I want static images of the visuals of my dashboard) for example a chart.
In the tutorial, only appers the complete dashboard, so:
- It is possible to "drilldrought" in the report and create an object (in c# I mean) of a specific visual?
- Can be used, the previous object, inside a opened word document?
I'm sorry if I haven't explained myself well.
So, any ideas?
Please, feel free to ask anything.
Thanks for all 🙂

Power BI Embedded Implementation

$
0
0
Hi Folks,

Is there a way of implementating Power BI embedded with just Power BI embedded service's liscene key and Master account. Any link or documentation will help.

Thanks.

Clarifications about embedding limitations in Power BI Pro license

$
0
0

Hi,

we are building a web application that will be used by different tenants, our customers, and will allow them to gain some insights about their business processes. You can consider this web application to be a "visualization tool" to display meaningful charts and diagrams starting from raw data collected by our flagship product.

I am responsible for maintaining and improving the platform, whose initial development was outsourced to another company.

 

First of all, the application leverages Power BI to embed dashboards in the web page; each tenant will have its own workspace (group) containing a set of dashboards. It is worth noting that we are in charge of maintaining the different workspaces and the tenants have no Power BI license, they will access their data only through our platform. The application code currently implements the "user owns data" scenario, and obtains token to access Power BI by authenticating with our Power BI Pro account data; the dashboards are then embedded in the browser by including the access token as "AAD" type (not "Embed") in JS.

 

I thought about changing the authentication process by switching to the "app owns data" scenario, since we have just one license and we do not use tenant identity to authenticate to Power BI, not to mention that the password of the user associated to the license expires periodically and this can lead to unnoticed service disruption. So far so good, I set up a service principal and changed the token type to Embed in the JS part, everything works just fine.

Yesterday I stumbled upon the infamous embed token limit, which means that right now we have reached a usage of 10% of free embed tokens. The docs recommend to switch to dedicated capacity, so our choices seem to be either Embedded or Premium.

 

Consider that right now our cost related to Power BI is $10 each month for the Pro license, and that using the Embedded SKU with the basic tier A1 will increase that cost by ~70x. We would like to avoid incurring in such high charges, since we cannot easily justify hundreds of dollars each month to our future few customers, just for a data visualization platform.

Given that the current authentication and embedding scenario seems to work, with the caveat that the web application is still not available to any of our customers and we are only performing internal tests on it, is it feasible to continue using the password approach with the AAD access token for embedding or is there any drawback that might come up in the future when the system will be running in production for our tenants?

For example, there can be some limitation or throttling to the Azure Active Directory/Power BI API or embed URL when using the Pro license, whereas Embedded or Premium have no limitation? How can we expect the application to behave when multiple accesses/requests will be issued from different browsers that refer to the same licensee? I cannot find such information on the docs.

I understand the security concern of disclosing the AAD token, since it will be available by inspecting browser network calls, but we can rest on the fact that this is meant to be a controlled platform and a limited number of users/tenants will be granted access.

 

Thanks in advance for any clarification on this topic.

Power bi failed to load data via odbc

$
0
0
 

Power bi failed to load data via odbc,Failed while loading a portion of the data,Show the following error

 

Load ▲ dcg.bid.analysis (2)

Failed to save modifications to the server. Error returned: 'OLE DB or ODBC error {DataSource.ErrorJ ERROR [HYOOOJ [SimbaHPresto] (1020) Error with HTTP API at

Https//xxxx.xxx.xxx>vo.com:30070/v1/statement/20l9l 119.170531 :Transferred a partial file.

 

 
 

Too may values in line chart

$
0
0

Hi everyone,

I have a line chart with ~40 axes and date as x axis. I get error that I have too many values. How it can be overcome?

Regards,

Yerkhan

Gauge/Thermometer like visual

$
0
0

Hi,

Have a requirement to display cholesterol levels, it should look like something below:

Capture.PNG

 

Tried with thermometer but it only shows "your result". Need to see the yellow,green,red as seen in the picture.

Please advice how the above visual can be doable in Power BI.

 

Thank you.

Viewing all 17937 articles
Browse latest View live


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