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

.NET SDK v3 documentation

$
0
0

Can someone point me to the v3 documentation for the Power BI .NET SDK?

Thanks.


AsymmetricKeyEncryptor is missing from the v3 SDK

PowerBIClient.Gateways.GetGateway returns Unauthorized error

$
0
0

Trying to configure datasource credentials at runtime and the call to PowerBIClient.Gateways.GetGateway returns Unauthorized error.  Below is the snippet of code used to do this:

 

Dim basicCredentials As BasicCredentials = New BasicCredentials(username, password)
Dim gateway As Gateway = powerBIClient.Gateways.GetGateway(datasource.GatewayId)

Dim credentialsEncryptor = New AsymmetricKeyEncryptor(gateway.PublicKey)
Dim credentialDetails = New CredentialDetails(basicCredentials, PrivacyLevel.Private, EncryptedConnection.Encrypted, credentialsEncryptor)
Dim udsRequest As UpdateDatasourceRequest = New UpdateDatasourceRequest(credentialDetails)
powerBIClient.Gateways.UpdateDatasource(datasource.GatewayId, datasource.DatasourceId, udsRequest)

 

The above code was found in the link:

https://docs.microsoft.com/en-us/power-bi/developer/automation/configure-credentials?tabs=sdk3

 

Any help would be appreciated.

Thanks.

PowerBI PRO (Web) consuming data from either from Azure SQL or REST endpoint

$
0
0

I want a visual to update every 10 minutes from a datasource that changes every 6 minutes.

 

Only PowerBI Desktop consumes from Azure SQL and REST.

 

PowerBI Pro (web) can scoop datasets from Azure SQL and REST endpoints via 'Apps'. 

Can these apps be written in python?

Is there a generic Azure SQL web client app that I can query the private cloud DB?

 

 

Add tooltip to custom visual

$
0
0

Good afternoon! Please help me develop the Power BI visual element. I can't add a popup tooltip (rendering another page). Please look at my code and suggest changes or provide links to simple examples. Official documentation didn't help me/

{
    "dataRoles": [
        {
            "displayName""Categories",
            "name""category",
            "kind""Grouping"
        },
        {
            "displayName""Measures",
            "name""measure",
            "kind""Measure"
        },
        {
            "displayName""Series",
            "name""series",
            "kind""Measure"
        }
    ],
    "tooltips": {
        "supportedTypes": {
            "default"true,
            "canvas"true
        },
        "roles": [
            "tooltips"
        ]
    },
    "objects": {
        "rect": {
            "displayName""Заливка",
            "properties": {
                "rectColor": {
                    "displayName""Color",
                    "description""The fill color of the circle.",
                    "type": {
                        "fill": {
                            "solid": {
                                "color"true
                            }
                        }
                    }
                },
                "rectThickness": {
                    "displayName""Толщина рамки",
                    "description""The circle thickness.",
                    "type": {
                        "numeric"true
                    }
                },
                "sizeCenterValue": {
                    "displayName""Размер шрифта Центр",
                    "description""Размер шрифта центрального значения",
                    "type": {
                        "numeric"true
                    }
                },
                "sizeLeftValue": {
                    "displayName""Размер шрифта Левое",
                    "description""Размер шрифта левое значения",
                    "type": {
                        "numeric"true
                    }
                },
                "sizeRightValue": {
                    "displayName""Размер шрифта Правое",
                    "description""Размер шрифта левое значения",
                    "type": {
                        "numeric"true
                    }
                },
               
                "QQQRightValuewww": {
                    "displayName""Преобразовать в %",
                    "type": {
                        "bool"true
                    }
                }
            }
        }
    },
    "dataViewMappings": [
        {
            "categorical": {
                "categories": {
                    "for": {
                        "in""category"
                    }
                },
                "values": {
                    "group": {
                        "by""series",
                        "select": [
                            {
                                "for": {
                                    "in""measure"
                                }
                            }
                        ]
                    }
                }
            }
        }
    ]
}

"Export report to image is disabled on tenant level" error for PNG format via the REST API

$
0
0

I'm getting the following when using the Export to File or Export to File in Group REST API endpoint when sending PNG as the format:

 

Export report to image is disabled on tenant level

 

I get a succesful response when sending PDF or PPTX as the format. The report is in a workspace assigned to dedicated capacity using a Azure Power BI Embedded A1 SKU in the West US region (same as the tenant's region).

 

I'm not aware of any tenant level settings for export to image and couldn't find anything in the Tenant or Capicity settings in the Admin Portal.

 

Anyone know if there is a setting at a tenant or dedicated capacity level that needs to be changed ... or if this is a limitation of Embedded (vs Premium, where I was able to get this to work for another org a month ago) or the region ... or if I need to specify something in the call?

 

 

Power BI API

$
0
0

Hi all,
I am connecting the Power BI in Microsoft Dynamics NAV. I have followed the steps to create a connection between Navision and Power BI. I am facing a problem the API is returning an embedUrl which NAVISION tries to store in a buffer table but the max length of storage is 250 characters and that API is returning more than 250 characters. All the coding is standard in the Microsoft Dynamics NAV. I did connect in the same way 6 months back but now I am facing this issue. Did they update the Api? if so what is the resolution of this?

Power BI Embedded: Exporting to PPTX/PNG very slow

$
0
0

Hi everyone,

 

exporting from Power BI service works fine. Exporting to PPTX/PNG from Power BI Embedded using the available API is awfully slow. A (very) simple report requires about 45 seconds. Anything more complex requires way more time (beyond several minutes).

 

Is there a way we can request more CPU/ressources for Power BI Embedded exports?

 

Regards,

DibaSFP


Custom live data source with MDX

$
0
0

Hi,

 

We have a in-memory DB that understands MDX and XMLA and we'd like to be able to connect to it from PowerBI in a "live" manner. E.g. DAX queries would be transformed into queries at some level in out data source, rather than being aggregated in PowerBI (we have tens of terrabytes of data potentially)

 

Is this possible? It seems very hard to write new data sources that undstand DAX and can translate it to efficient queries on the underlying data? In this sense it would work the same way as the SSAS connect I beleive

 

Thanks,

Ben

Need Help with Power BI

$
0
0

Hi Team,

 

Trust everyone is doing well. I need some real help with Power BI.

 

So, I have around 12 metrics(12 line graphs to show the trend for each metric) and on the left hand side, I have Filters(L6 Manager, L5 Manager and so on till L1).So, now if I select any of the Manager, it will show the trend for that manager and if I select 2-3 managers it will show trend combinely for that 2-3 Managers.

 

But now the request is...They want to see all the managers graphs at once for the same metric. They want to compare the same trend with 2-3 Managers or evryone from his team. For example, one of the metric is "User Count". So when we select 3 Managers or his complete team, I want a 3 different line graphs or his total team strength showing the same metric for each manager respectively so that I can compare the graph among 3 managers or how many members he has under him and see which manager is doing well. Like a drilldown option.

 

May be I am thinking to have 12 separate tabs for each metric and have same metrics graphs (12 graphs..4*3) on each tab (All 12 graphs in 1 tab will be "User count" )and we can sync filters to each graph separately so that they can have 12 managers max selected and comparee 12 managers at a time. But if they want to see everyone under their team to see who is performing better then this is not an option.....Any Suggestions/ideas? Please help           

Embed Report Filter not working

$
0
0

Hi,

 

I have read several posts and tried many examples and none of them are filtering my report. Below are a couple examples. Please help.

 

var accessToken = "@Model.EmbedToken.Token"; // Read embed URL from Model var embedUrl = "@Html.Raw(Model.EmbedUrl)"; // Read report Id from Model var embedReportId = "@Model.Id"; // Get models. models contains enums that can be used. var models = window['powerbi-client'].models; // Get a reference to the embedded report HTML element var reportContainer = $('#embedContainer')[0]; if ("@Model.Username" != "") { $("#RLS").prop('checked', true); $("#RLSdiv").show(); } else { $("#RLS").prop('checked', false); $("#RLSdiv").hide(); } if ("@Model.IsEffectiveIdentityRequired.GetValueOrDefault()" == "True") { $("#noRLSdiv").hide(); $("#RLS").removeAttr("disabled"); $("#RLS").change(function () { if ($(this).is(":checked")) { $("#RLSdiv").show(300); } else { $("#RLSdiv").hide(200); } }); } else { $("#noRLSdiv").show(); } const testFilter = { $schema: "http://powerbi.com/product/schema#basic", target: { table: "SampleParameter", column: "AgentID" }, operator: "In", values: ["H1627"] }; // Embed configuration used to describe the what and how to embed. // This object is used when calling powerbi.embed. // This also includes settings and options such as filters. // You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details. var config = { type: 'report', tokenType: models.TokenType.Embed, accessToken: accessToken, embedUrl: embedUrl, id: embedReportId, permissions: models.Permissions.All,//models.Permissions.Read //can add filters here filters: [testFilter], //filter array here settings: { filterPaneEnabled: true, navContentPaneEnabled: true //the nav at bottom of report }, //filterType: models.FilterType.BasicFilter }; // Embed the report and display it within the div container. var report = powerbi.embed(reportContainer, config);

 

// Build the filter you want to use. For more information, See Constructing // Filters in https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters. const filter = { $schema: "http://powerbi.com/product/schema#basic", target: { table: "SampleParameter", column: "AgentID" }, operator: "In", values: ["H1627"] }; // Get a reference to the embedded report HTML element var embedContainer = $('#embedContainer')[0]; // Get a reference to the embedded report. report = powerbi.get(embedContainer); // Set the filter for the report. // Pay attention that setFilters receives an array. report.setFilters([filter]) .then(function () { Log.logText("Report filter was set."); }) .catch(function (errors) { Log.log(errors); });

How to transfer the current month value to next month.

$
0
0

At start till date "Active patients" are 0. Then "Total Active patients" = "Active Patients" + "New Patients" - "Drop off Patients".
And 2019 November's "Total Active patients" i.e 2 which is the December's "Active Patient".  And 2019 December "Total Active Patients" i.e 4 which is 2020 January's "Active Patients" and so on... 

DateActive PatientsNew PatientsDrop off PatientsTotal Active Patients
Nov-190312
Dec-1922 4
Jan-204123
Feb-2031 4
Mar-2041 5
Apr-205216
May-20610214
Jun-20144117

 

How do I calculate "Active Patients" column In Power BI Using Dax.

Please Help me.


Thanks In Advance!

Downloading/Exporting PBIX via API/cmdlet that contains incremental refresh

$
0
0

Is it possible to download or export a PBIX from the service with an API or cmdlet that's been uploaded with incremental refresh? I know you can't just export right from the service, but is there a way of doing it in a roundabout way?

Script error when trying to connect GA to Power BI

$
0
0

When I try to connect Google Analytics to Power BI I get a script error (I think from GA) when trying to login. 

 

This connection used to work but since trying to remove GA the reconnection now doesnt seem to work. 

CloudScope dropped the mic

$
0
0

As our "Image by CloudScope" visual shows now a warning that "it is not supported and will be deprecated" we became aware of the fact, that CloudScope cannot support the Power BI environment anymore.

 

According to CloudScope especially funny, because Microsoft now forces a policy that loading external images is prohibited - for an image control which loads ... you guess it.

 

CloudScope's article with background information (and they are not very happy): https://www.cloudscope.io/blog/view/cloudscope-ends-support-for-power-bi-custom-visuals

 

BI team: There is only a "Simple Image" visual remaining in AppSource, which is actually very bad (does not stop loading images), is non-certified and which does not get printed, if printing from Power BI Embedded (and I guess as well not in the regular PBI Service). Help and a solution is highly appreciated...

 

Regards,

Björn


Integrate Microsoft Dynamics GP into Power BI

$
0
0

Hello All

 

My Company is looking for a reliable third party vendor that can create financial reports from MicrosoftGP to Power BI. I have found two solutions (Insightsoftware & M-Hance) but would like to see if there are any others you all have personally used and the pros and cons of it. Any information would be appreciated! 

 

Thanks 

MM

Push data with CSharp

$
0
0

Hi,

 

I'm working on getting my data-pushed with c# and the power bi API, my issue is with datetime columns; My explanation, in my code, when I created the dataset I'm specificating the type of my data, if the column is string, I'm sending string, when is Datetime I send DateTime, in this part my process work perfect ( O at less is what I think it is). When I'm tring to push the data, my datetime format is "yyyy-MM-ddTHH:mm:ss.fffZ" and when execute the push work fine, but in my power bi desktop the column isn't marked as datetime and when I try to work with a datetime function is telling me that cannot convert value text to date, this is the message.

 

martinmatouy_0-1593476749222.png

 

I'm assuming that my data isn't in the correct format in power bi dataset, what is driving me crazy.

If someone can give me the help I'll appreciate

 

Thanks for the help

 

On-premises data gateway with custom connector OAouth2 and 2FA

$
0
0

We have a custom connector for getting data out of our SAAS accounting software. The REST API uses OAuth2 and 2-Factor Authorization. All is well in PBI desktop. Now we would like to refresh in the service.

We set up an on-premises gateway in personal mode following the instructions here and subsequent pages in the docs. Behavior is initially as expected: when clicking on "Edit credentials" a popup-window with the login screen for the accounting software appears. After supplying the user id and password, the expected behavior is for the 2nd factor authentication screen of the accounting software to replace the login screen (this happens in desktop). Instead, the entire popup-window disappears and we're back at the Configure-dialog of the custom connector in PowerBI. Since the authentication routine for the accounting software was not completed, there is obviously no way to refresh data in PowerBI.

My question: Has anyone experienced similar behavior and/or knows a solution for this issue?

powershell for list of power bi report to write output to sharepoint location - possible?

$
0
0

Hi,

 

Have powershell script which currently writes output to .csv on local drive and uses Get-PowerBIReport cmdlet amongst others

 

Anyone know how to instead to write to a sharepoint location instead.

 

We currently have to save this manullay to sharepoint location and then run power bi report.

 

Would be better if we coudl write directly to sharepoint location in powershell.

 

Thanks 

Pragmatically Change Datasets Data source Credential

$
0
0

Hi,

 

I've publish a report into a workspace that we use for development.  To migrate the report from the Dev Worspace to an UAT one, I've build a PowerShell script that import the report.  In the script, I'm changing the database connection of the dataset to point to the UAT server and database using the report parameters (not a gateway).  The issue that I'm now facing is that I also need to change the data source credential of the dataset since the user that we use in UAT is not the same then Dev.

 

How can I change those information using the API or use User Id and User Password parameters ?

Viewing all 18111 articles
Browse latest View live


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