Quantcast
Channel: All Developer posts
Viewing all 48061 articles
Browse latest View live

Visualization for order status

$
0
0

Hi,

 

Wonder how I could find the similar visualization like this?order.PNG

 

 

 

(with the status on the top and add information, such as quantity and value)

 

Now what I could find is Gantt chart, but it may not meet the requirements to track order status.

 

Kindly ask your help in this.  


CSVs on SharePoint Refresh failure and 0x80040E4E Error on Desktop App

$
0
0

Hi everyone. This is my first post/question to the community 🙂

 

I am reporting on my company's antivirus software. I have a schedule set up that emails me 7 different csv's containing data from that day. I have a Flow set up that saves the files to SharePoint.

 

  1. My source looks like this: SharePoint.Files("https://domain.sharepoint.com/sites/MYSHAREPOINTSITE", [ApiVersion = 15])
  2. I don't have any joins, each table is a query on its own.
  3. I don't have any funny relationships, everything is one-to-many (I have a calendar and a table with users that link to the rest)
  4. I have checked all the dates in the csv's - nothing out of the ordinary.

When I refresh/apply changes on my .pbix file I get this error (the table in which the error was found, changes every time):

 

Capture2.PNG

When I refresh my report on the service, I get this error (the table in which the error was found, changes every time): 

 

Capture.PNG

 

However, even though I get a refresh failure, the data on the report is up to date.

 

This report used to work perfectly fine, I haven't changed anything. The failures started about a month ago and never stopped.

 

I would really appreciate some help.

Re: Access .pbix file with .NET software

$
0
0

Hi  , thanks for your answer.

But I want to change my File which i have stored on my computer not on PowerBI Online.

 

Do you have another idea?

 

Re: CSVs on SharePoint Refresh failure and 0x80040E4E Error on Desktop App

$
0
0

Hi ,

 

Mainly we have 2 reasons for this error.

1. In the source level Column data type changes , Column name changes, Case sensitive issues, Source path issues, etc..

2. In the Power bi desktop level, Version issues and in the advanced editor please check the column formatting or renaming etc..

 

So please check all the scenarios again.

 

PowerBI JavaScript - Report Visual not showing default filters on filter panel

$
0
0

Hi,

 

I'm using PowerBI-JavaScript client to render a visual. When a filter is added to the visual that is not part of the fields of the visual, this filter is not appearing on the filter panel. But when I render the Report Page and click on the visual, I can see the filter on the filter panel. See exemple bellow:

 

Visual filter when rendering the Report Page and click on the visual:

Report.png

 

Visual filter when rendering the Visual and click on the visual:

FiltersOnVisual.png

 

Is this a limitation of the API?

 

Re: PowerBI JavaScript - Filter not showing on filter panel when rendering visual

$
0
0

After further investigation, with the previous versions of powerbi.js (2.7.4) I would set a default filter like this:

 

visual.setFilters("[]")

 

Now, this command is wiping the default filters of the report as you can see in the example above. After making some tests I could verify that if I set the filter with "null" as string the filters are not affected.

 

visual.setFilters("null")

 

So my question is: should I use the newer version visual.setFilters("[]") or visual.setFilters("null") or is this a temporary bug?

 

I have clients complaining about this already!

Where is LearnMoreUrl of custom data connector used in PowerBI Desktop?

$
0
0

Hi, I see that there is a LearnMoreUrl field in UI publishing part code of building PowerBI custom data connector, but I did not see where it is used in PowerBI Desktop. Could anyone show that where it is used? Thanks!


https://docs.microsoft.com/en-us/power-query/handlingdataaccess

LeanMoreUrl, text, (optional) Url to website containing more information about this data source or connector.

 

https://github.com/microsoft/DataConnectors/blob/dbd99078501897e04e7a6b9305ad7857ae1b7a63/samples/Relationships/Relationships.pq

Relationships.PublishNone= [
    Beta = true,
    Category = "Other",
    ButtonText = { "Relationship - None", "Relationship - None" },
    LearnMoreUrl = "https://powerbi.microsoft.com/"
];

Setting report "description" in desktop client

$
0
0

Hi, Im not sure if Im missing something obvious here... The datasources in each report have a description field that can be accesed via the API. I cant seem to find a similar thing at the *report* (catalogitem) level.

 

We currently force our users to create an "about" page listing the usage of the report as well as each datasource. This is only in a text box and is therefore not searchable. Id like to use the datasource descriptions as they can be extracted into a database and reported upon. Ive not seen anywhere that a *REPORT* (catalogitem) description can be entered.

 

The catalogitem object does have a "description" attribute but I cant see where this is set (through the desktop client)

 

Any ideas?

 

 


Re: Automating Power BI Gateway administration by using Powershell

$
0
0

Hi 

 

I am trying to create a datasource from gateway, below is the request:

 

POST https://api.powerbi.com/v1.0/myorg/gateways/{gateway-id/datasources


{
"dataSourceType": "Oracle",
"connectionDetails": "{\"server\":\"myserver\"}",
"datasourceName": "PostAPI Datasource",
"credentialDetails": {
"credentialType": "Basic",
"credentials": "encryptedvalue",
"encryptedConnection": "Encrypted",
"encryptionAlgorithm": "RSA-OAEP",
"privacyLevel": "None"
}
}

 

I am receiving the following error: 400 bad request 

{
    "error": {
        "code": "DM_GWPipeline_Gateway_DataSourceAccessError",
        "pbi.error": {
            "code": "DM_GWPipeline_Gateway_DataSourceAccessError",
            "parameters": {},
            "details": [],
            "exceptionCulprit": 1
        }
    }
}

Could anyone please help!

Thank you.

Connection Odata error

$
0
0

Hi All,

How to resolve the below error. Please help

 

odata_feed_error.png

 

Embedded API - get report object without workspaceId

$
0
0

Is it possible for me to retrieve a report object from the API without passing in a workspaceId and while using a service principal to authenticate? When I try to call:

 

client.Reports.GetReportAsync(reportId);


I get a 403 saying the application is not permitted.

 

However using the same service principal I am successfully able to make a call and retrieve the report using:

 

client.Reports.GetReportInGroupAsync(WorkspaceId, reportId);


Is there a solution or workaround so that I do not need to provide the workspaceId with each request I make to my service? The service principal has been given access to the workspace already.

 

Thanks

 

 

Matrix visual Custom Background color

$
0
0

Hi,

can someone help me in acheving below scenarios in powerbi.

I am using Matrix visual to show my data.

Scenario1:- if score of particular day is greater than previous day then background color should be Green.If score is less than the previous day score than background color should be of Red. as below

 
 
 
 1/2/20191/3/20191/4/20191/5/20191/6/20191/7/2019
AA1.52.21.83.24.21.2
BB2.23.23.84.14.95.2
CC5.24.24.53.44.54.2
DD4.85.24.94.75.25.1
 

Scenario2:- If i click on any cell in matrix visual it should take me to other tab where the underline data of that cell will be seen.

Please let me know how we can achieve the above scenarios.

 

Regards,

DD

Re: Access .pbix file with .NET software

$
0
0

Hi  ,

 

The PBIX file as a collection of files and folders in a compressed zip package. If you need to manually view the contents you can rename the ".pbix" extension to ".zip" to create a .ZIP file and then extract the contents of the file.

 

Currently there is no such functionality from powerbi to access/modify the pbix file programmatically from dotnet. 

 

If you want you can request this idea in the idea forum

Event 'rendered' fires prior to the factual rendering of all visuals

$
0
0

We use Power BI Embedded and want to print an embedded report by button click.

 

Code

const embedConfig: IReportLoadConfiguration = JSON.parse(JSON.stringify(this.data.reportLoadConfig)); const pbiEmbedReport = <pbi.Report>(this._pbiService.load( this.embedReportWrapper.nativeElement, <IEmbedConfigurationBase>embedConfig )); pbiEmbedReport.on('loaded', () => { pbiEmbedReport.render(embedConfig); pbiEmbedReport.on('rendered', () => { pbiEmbedReport.print(); }); });

 

For some reason not all visuals are rendered completely in the PBI's iframe at the time of executing

pbiEmbedReport.print();

 

When we delay printing by 5 seconds then PBI gets additional time to finish rendering the report page.

 

Here https://docs.microsoft.com/en-us/power-bi/developer/embedded-performance-best-practices#measure-performanc  and here https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events it is said "Called when a report is fully rendered".

 

In the rendered report page we have standard visuals (one Table, one Donut chart, two Line Charts and several texts) and custom visuals (two Images). Only Table and Donut Chart are affected by this bug.

Admin Read API - automatically export data without a user

$
0
0

Hi all,

 

I have been looking into Azure App Registration and was hoping to utilize the Power BI REST APIs.

 

However for my purposes, I would like - say once a day or week - the API to call and get all workspaces (for example) and output that somewhere.


I can build an application to run the APIs but I don't see how to do it without including a user. I'd like this to run automatically.


If I've registered an Azure app with a client ID + Secret and permissions to read the workspaces. Could this be used to automate the job?

 

Thanks


Re: Matrix visual Custom Background color

$
0
0

Hi ,

Both scenarios are possible. 

The above should give you a decent introduction to both, with some guided examples and alternate scenarios for you to review.

Good luck!

Daniel


If my post helps, then please consider accepting as a solution to help other forum members find the answer more quickly 🙂

Unable to hyperlink from excel into filtered report

$
0
0

Needs:

I need an SSRS generated excel document to hyperlink directly to a filtered power bi report.

 

Problem:

My SSRS generated excel hyperlinks to power bi are either

1. linking to the login landing page and after logging in lose the parameterized filter and the report doesn't open

2. Add &noSignUpCheck=1 to the URL and bypass the landing page but the report ends up losing the parameterized filter 

 

Additional Details

1. When I run the hyperlink in a browser window, it opens and filters the report

 

I'm hoping that someone may have run into this issue before and have a solution.  Thank you.

Re: Visualization for order status

$
0
0

Hi ,

There's currently no such visual that can do this that doesn't come with an additional cost - the Visio custom visual can do it but you'll need at least one Visio license to author the layout that you'll need to load into the visual.

However if you always want to show the same statuses irrespective of totals actually being available for your filter context, you could set this up using a number of cards and a layout image.

A lot of articles are geared on doing this for the whole report background but you can use it for a small part of the page and overlay the cards. Here's a couple of articles that help underpin the concept better than I can:

This approach is not as convenient as having a ready-made visual, but does ultimately give you more control over the look and feel of your version, and as long as each placeholder is designed correctly - it should respond nicely to any slicers on the page, too.

I made a quick version of your design, using the Customer Profitability sample report data, and the Division attribute as my "status". It's not 100% accurate, but you should be able be to tweak accordingly:

image.pngFinished product

I'll explain my method below and hopefully this will give you some ideas:

 

  • Use a tool to create your background image. For expediency, I used PowerPoint SmartArt to create the chevrons, and then I then right-click and Save As Picture, e.g.:image.pngSImple background created using PowerPoint
  • In Power BI Desktop import the image, e.g.:
    image.pngImage imported into Power BI Desktop
  • To illustrate the count, I created a measure as follows. This produces the result in the number format you have in your spec, but you can modify as appropriate to match your requirements:

 

Division Total = FORMAT(COUNTROWS(BU) + 0, "(0)")​

 

  • We can test this by adding a card to the report, e.g.:
    image.pngOutput of measure for all data
  • I now add a filter for this visual for Division and set it to Core, e.g.:
    image.pngFilter applied to card for category
  • I'll now drag this over the image and format it to suit, e.g.:
    image.pngCard - formatted and positioned
  • Repeat the above steps to complete the other statuses. I do this by copy/pasting the card and changing the filter on each, e.g.:
    image.pngAll cards overlaid and set up with appropriate visual filters
  • We use a similar trick for the financials - add your measure to a card, and filter and style accordingly, e.g.:
    image.pngAdding revenue measures
  • I then add in the lines between each status as shapes, although you can do this in the layout image if you so wish.
  • To finish off, I'll group all elements together, to make them easier to move around, e.g.:
    image.pngFinished product

Here's a shareable link of the report I used above for you to download if you want to take a further look.

I hope this gives you some ideas on how to solve your challenge. Good luck!

Daniel


If my post helps, then please consider accepting as a solution to help other forum members find the answer more quickly 🙂

Report Test Automation by exporting data

$
0
0

Hello,

 

I am looking into building a test automation to verify whether the report is implemented properly by supplying mock data, and checking it on the report whether the expected values are shown.  In order to do so, I need to export the report data and feed it into the test framework.  I have checked both Java REST API and JavaScript PowerBI API, but all i see is the ExportData api in JS which exports the data in csv format.  As our existing test framework is in Java, I was hoping that there is a way to get something like a JSON blob in Java.  

 

Our backend is in Azure Analysis Services, and I have thought about getting data from there instead, since it will do most of the processing, but AAS also does not have a handy way to be queried by non-MS systems it seems.  

 

I have checked the forum too, but with no luck.  Is there a way to get data from either PowerBI reports or AAS using Java (preferably) or JS?

 

Thanks,

Re: Report Test Automation by exporting data

$
0
0

Hi ,

I haven't peronsally had a play with the approaches below yet, but am aware of them, which may be all you need to get started. If more specific help is required, then we'll probably need another user more skilled in these areas to weigh in.

MS provide third-party access to SSAS via XMLA endpoint, which is a SOAP-based protocol for working with Analysis Services, so any language with good SOAP support, so Java might be a better fit than JS here.

Note that XMLA is available in preview in Power BI, but only if you have premium, so SSAS might be the better option.

You should also be able to use XMLA in conjunction with SSAS-specific scripting languages:

Hopefully this should give you something to get started with.

Good luck!

Daniel


If my post helps, then please consider accepting as a solution to help other forum members find the answer more quickly 🙂

Viewing all 48061 articles
Browse latest View live


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