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

Embedded iFrame Print Issue

$
0
0

Our organization has developed reports we are hosting in the service and serving using Power BI embedded. Recently we have been made aware of report elements that don't appear when exporting the embedded report (Print, PDF). Printing the report from desktop, or from the service appears fine.

 

Does anyone know if there are any settings or parameters for the embedded iframe that would have an impact on print? I'm not a web developer so I apologize if the question is to vague.


Power BI quad analysis / AB Classification / Pareto Principle

$
0
0

I'm looking to create a quad analysis model which will filter by branch/region/company/date. It uses 2 dimensions (Products and Customers) and classed into 4 classifications AA, AB, BA, BB which uses the 80/20 pareto principle of each dimension. The following are the steps:

1) Cumulative Sales By Customer

2) Cumulative Sales By Products

3) Rank both in descending order

4) Customers which makes 80% of sales are classed as A, the remaining are classed as B

5) Products which makes 80% of sales are classed as A, the remaining are classed as B

6) Group by Customers and Products

7) Combine both classes based on groups

😎 Preferably a scattergraph/quad chart that groups AA,AB,BA,BB.... if not a scattergraph, a card displaying the cumulative total of each quads for each filter.

 

Please let me know it's possible to make it dynamically filter? Or if not, are there other solutions out there that can do this? Links to pictures which hopefully will clear up what I'm trying to explain.

 

https://drive.google.com/file/d/1W9zyjZp4H8g6APW_-z3iP7k_FL8g2wok/view?usp=sharing
https://drive.google.com/file/d/1_u5-KkERlqh32I-eZ5hRJTvicwrCxc9K/view?usp=sharing
https://drive.google.com/file/d/1HpO8a3toPEhBfZRNszHZiejX4DfT35rE/view?usp=sharing
https://drive.google.com/file/d/1biZRd8QKm4r1pnmkImH5chgL_c3pO5bc/view?usp=sharing

 

Thanks

 

 

 

Q&A linguistic Schema Documentation, and possibilites

$
0
0

Hi Power BI community, 

 

I am currently impelmenting a Q&A solution for some ad-hoc reporting. 


So I understand all the UI things that can be done to build some ontology between the columns and the business unterstanding, i.e. renaming columns, using synonyms or defining adjectives with the Teach Q&A feature. 

So my understanding is that with the linguistic schema we can define phrasings. For example "what have my customers bought". So we would define the verb [buy,purchase] and set the Subject as customertable.customer and the Object as producttable.product. 

At the moment the documentation on this topic is really sparse. For example to me it is not clear what Operators are valid for Conditions for example. In the doc I could only find "Equals", but how do we write ">", "<", or "<>" in the schema? 

The only useful documentation that I could find is here: 
https://powerbi.microsoft.com/en-us/blog/editing-q-a-linguistic-schemas/

https://docs.microsoft.com/de-de/power-bi/natural-language/q-and-a-tooling-advanced

Does anyone have other sources? For me this is not really enough, and only offers information for the presented cases. I think Microsoft should really provide better documentation on this topic. I am also not sure if lingusitic schemas that are now developed, will still be working in the future once the feature goes into public availability.

*Update: 
https://powerbi.tips/tools/lingo/
With this tool you can see what are the valid values that you can fill into the YAML file. Probably a better alternative to using VS Code. 

Greetings, 

Chris

Embed Report to our Xamarin Mobile app

$
0
0

Hi everyone,

 

We have a mobile application that is accessed through Azure AD. The application has permission to read and write PBI reports in Azure. In the app, we have a menu, which can be displayed after logging in, and one of its items is "Report". When selecting this item we want the user to see the PBI report embedded in the application, without having to login to PBI, because they are already logged in to Azure AD when entering the application.

How can we do this in Xamarin Forms?

It should be clarified that the company has Premium licensing and all users would have access to the PBI report.

 

Thanks and regards, Alexis

 

Custom Visual - How to get selected items from a dimension?

$
0
0

We have a simple custom visual which has some dimensions as a categorical type.


With options.dataViews[0] etc. we get all of the possible values. But what we need is the user selected values instead all of them. Like when you're having country and products - if the users selects only a country we should get no value for products as no element is selected (no matter if values are possible!). Any example for this?

 

Got a look at the selectionManager but had to give up due to...lacking documentation(?). Using the latest API version / pbiviz.

 

Power BI Embedded with AutoML?

$
0
0

We have a ISV cloud app built around power bi embedded (with paid capacity) and want to get into the AutoML stuff... How do we enable this?

Azure Application Insights 'Alerts Data' into Power BI for Visualisation

$
0
0

Hello Guys !!

I was trying to pull data from Azure Application Insights to Power BI in order to create some visuals for consumption.

With help of a Kusto Query I am able to extract the Metrics Data.

There are some Alerts established on these Metrics in Application Insights, and I want to pull the Alerts Information, mainly the below fields:

Name

Severity

Monitor Condition

Alert State

Signal Type

Fired Time

Subscription

 

I tried some ways using REST API, efforts went in vain. I am new to Power BI and looking for some help on how to get this done.

a treemap to get a ranking

$
0
0

Hello,

 

Can you help me to implement a treemap to get a ranking of 5 most repeated types in my column B ?

 

In fact, my column B has 1 000 records with around 10 values distincts. I would like to know the 5 values the most repeated.

 

Thank you


How to embed public reports using Javascript API?

$
0
0

Currently, I'm ambedding my public reports using a simple iFrame tag in my page (Angular application) and passing as `src` attribute the URL generated by `Publish to Web` option.

 

It works fine but I would like to use the JavaScript API. However, all the examples I see it's stated that the authentication token is required, like in the Wiki example for basics (https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics)

 

How do I embed public reports using the JavaScript API and still use the goods of its features?

 

Thanks in advance

Power BI Embed License for Mulitple instance

$
0
0

I have multiple instances of application running on different servers

Production –> 3 instance  

Test  -> 1 instance   

Dev  -> 1  instance 

 

 

I am using “Embed Power BI content into an application for your customers” ,so dedicated capacity is required.

Assuming that I have secured Power Bi Embedded license(Dedicated), will same license could be used for n-number of application across multiple servers or will there be any limit of number of instances or servers?

Capture Export button click event on Power BI embedded

$
0
0

Hello All,

  

Need a way to capture Export button click event that occurs when Data is exported in Excel from report embedded in Browser.  
Screenshot attached for reference.

 

Any help would be much appreciated.

Screenshot from 2019-12-09 18-25-38.png

Querying reports via Power BI REST API

$
0
0

I'm trying to retrieve reports via the Power BI REST API Apps - Get Reports 

 

I've noticed a field being returned in the REST API that is not present in the documentation on the report object. It is called "reportType" and is returning a value of "PowerBIReport". As I see no other endpoints that are specific to Power BI Reports and Paginated Reports, is it safe to assume that getreports returns both traditional power bi reports, along with paginated reports? And if so does the "reportType" field tell you whether it is one or the other? If so what are the valid values that are returned in this field?

Getting oauth token in template app

$
0
0

Hi Folks,

I am trying to create a report with datasource being an api which needs oauth token. 

I am planning to publish this report as a template app in the appsource and that is when this app should ask for the some required parameters and ask for users org sign-in account get a token and than call the configured webapi with the token passed as header (typical auth rest api mechanism)

 

I want to know how can I get the oauthtoken in the report and refresh it?

Any pointers on this will be helpful.

Thanks

Tushar J

Gateway public key size problem

$
0
0

Hello,

 

Is something changed with the public key size on the enterprise gateway lately?


I've been using this key successfully to encrypt credentials and update DataSources bound on an already set up gateway.
However after updating the gateway suddenly the returned key is 2048 bit instead the old one which was 1024bit ?

 

(print scr. of the current vs old key)

http://prntscr.com/q8tja2

 

With this key size, the following documentation on the official powerbi docs 
https://docs.microsoft.com/en-us/power-bi/developer/encrypt-credentials

is not working since it is using the previous 1024 vit key version.

 

Any idea why this has been changed or possibly it is problem with my gateway ?

 

 

Thanks a lot.

Cheers

 

Return sum of the column

$
0
0

In the report that I'm working on, I need to calculate a column C which has a minus value for each row. 

 

Group_tot:= VAR result1 = bla bla... VAR result2 = bla bla... VAR Comp = ROUND((result2 - result1 );2) Return IF(Comp<0;Comp;BLANK()) ( I want to show only minus values)

 

 

In report I can see correct results for column C like -1,00 , -0,45 ,... for each row. 

How can I return the sum of the result as well and show it in the bottom of the column C(-1,00 +(-0,45)+...)?

 


Trigger Instant Subscription in Power BI

$
0
0

I am attempting to make a web call to trigger a Instant Subscription to email out a report.

I am able to successfully get a Micosoft Auth token via C# and generate the necessary payload below

 

I am calling wabi-us-north-central-redirect.analysis.windows.net/metadata/emailsubscriptions/instant and delivering the payload.

However I am getting an Unauthorized (401) error. I have mimic all of the headers except the referrerURL. Has anyone had success in this?  The goal is to send the report when the data is ready in the on prem server.  I will kick off a data refresh and send the instat report.

Updating Non-Dataset Params Via API

$
0
0

I have a report that uses parameters to not only define the dataset to connect to, but also parameters that are used to alter measures based on the parameter value. For instance, i have a numeric value that describes the low end for trivial dollar amount entries. There are numerous measures that are used in filters that take into account this value.

 

The problem is that, since this param does not directly affect the dataset, it does not show up in the Power BI service, nor in the list of available params when pulling them through the API. Does anyone know if its possible to update parameter values via the API if they aren't directly tied to a dataset?

 

Thanks,

Jason

I am looking for a ERD\Flowchart visual. I think I might have to build this in d3JS

$
0
0

There are a half dozen organization type charts out there but I can't figure out how to draw the hierarchy from Source Table > The query and all of its columns > Destination table. 
Say the Parent table Customer has ObjectID =1, ParentObjectID = NULL

A half dozen customer specific columns with unique ObjectIDs but the ParentObjectID = 1. The org charts handle this fine.

But when I add the destination table I can't have it's parentID = 1 (Parent Table). If I do that it shows up just like the columns.

And I can't point it to one colum because then it would have a direct 1 to 1 line. 

 

Thoughts?

Please share pbix files of reports+dashboards used in PowerBI-Javascript samples

$
0
0

I am playing around with PowerB-Javascript. I was curious if you could share the pbix files of the reports+dashboards etc. used in the samples

DOMException: Failed to execute 'postMessage' on 'Window' on report.applyTheme()

$
0
0

Good day! I am trying to build in a day/night switch into my Power BI Embedded app that will flip from dark to light. I want to extend the functionality into the embedded report itself. Here is the code:

 

 

 

 

var report = powerbi.embed(reportContainer, config); $.ajaxSetup({ async: false }); var themeJson= (theme == "material") ? $.getJSON("Content/power-bi-themes/light.json") : $.getJSON("Content/power-bi-themes/dark.json"); $.ajaxSetup({ async: true }); report.applyTheme({themeJson:themeJson});

 

 

 

 

The error I am getting is in the subject line. Please help! 🙂

Viewing all 17929 articles
Browse latest View live


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