Thanks Greg,
Thank you for your suggession. I created a function that would list the7th working day for each day as per my need and then import that tabe to my tabular model for further process.
Thanks Greg,
Thank you for your suggession. I created a function that would list the7th working day for each day as per my need and then import that tabe to my tabular model for further process.
Hello, everyone,
I would like to retrieve the filters from the HierarchySlicer (Slicer) from Microsoft. This was published in February 2020 with the new features.
To retrieve the current filters I use the method getSlicerState(), which doesn‘t work with the new feature.
For example, I have the following hierarchy slicer element:
If I select Dodge and/or Ford on the upper level I will receive a result back. But if I select an element on the upper level like 'Dodge' and additionally select an element on the lower level like 'Mustang', I get no result.
Unfortunately there are no notes about the changes of the PowerBI Javascript API.
Does someone have the same problem and can help me?
Thanks for answers.
Thank you for the detailed reply, this information definitely gives me somewhere to start. Yes, I agree I have had trouble finding some answers specific to custom visuals, although this community has definitely helped me across the line when I get stuck.
I will spend some time going over the content and keep improving my current visual, once I get a little more knowledge I will be able to pay back the favour by answering questions, the business I am working for at the moment has a huge drive with Power BI reporting at the moment, I think the next 6 months at least will be focused on that and throwing in a custom visual every now and then.
Thanks again, I'm sure this post will help many others on the same journey as myself.
Brenton Collins
Hi All,
I am importing data from a sharepoint excel and running a python script to expand and maniplate the table into the required format. This works excellently but I have found out that python only supports personal gateway. It is a requirement that we can refresh this report with cloud gateway. Therefore I believe my only option is to recreate what my python script was doing in power bi (which I am less familiar with).
In essence what I am trying to do is as follows:
Input table (sharepoint):
Effort | ||||
Prefix | 2020 Q1 | 2020 Q2 | 2020 Q3 | 2020 Q4 |
proj1 | 10 | 14 | 13 | 12 |
proj2 | 2 | 6 | 10 | 12 |
Should expand to:
Date | Prefix | Effort |
01/01/2020 | proj1 | 10 |
01/01/2020 | proj2 | 2 |
02/01/2020 | proj1 | 10 |
02/01/2020 | proj2 | 2 |
.. | .. | .. |
.. | .. | .. |
31/12/2020 | proj1 | 12 |
31/12/2020 | proj2 | 12 |
I want to take a simple table with effort per project for each quarter and expand it out to each day of the year and for each prefix.
What would be the 'power bi way' to approach this problem? My guess is that I am going to have to learn some M and tackle this in the advanced editor. Any material or examples is welcome!
Your expert advise would be appreciated!
Olly
hi
Just want to check if you guys have found solution for this ?
I am facing a similar issue with the async call client.Reports.ExportToFileInGroupAsync using the service principal.
During the debug session, my Visual Studio kept waiting for the response.
Thanks
Doan
Hi,
i don't think it is possible via standard. Have you ever tried to develope a custom Button visual?
Greetings Andy
Hello everyone
In my custom visual, I have this piece of code that does an ajax call to our backend server, using jQuey:
$.ajax({ url: "https://localhost:9099/Auth/Ping", method: "GET", xhrFields: { withCredentials: true }, success: function(){ console.log("success");}, error: function(){ console.log("error");} });
Normally, this code works without problems even in Internet Explorer, I did a test and I can confirm that, in a normal webpage, this works perfectly in IE.
However, when I put it inside a PowerBI custom visual, the code fails and I get this error on the javascript console:
https://i.imgur.com/OiUf9hs.png
I've checked the error code, but it's not much use, it indicates a generic "network error". Note that, again, on any other web page this works without issues in IE.
The even wierder thing is, if I check the network tab, the request seems to have completed succesfully and without errors:
https://i.imgur.com/gKnXMNe.png
So the call is actually going through and returning correctly (code 200), but for some reason IE still considers it failed and stops the script.
Anyone has any idea of what is going on here? To summarize:
-This problem only occours when running this code in a PowerBI custom visual, using this code on a normal webpage doesn't have any issues
-This problem only occurs on Internet Explorer, other browsers behave correctly (what a surprise...)
-This is not a CORS issue, the server is correctly configured for CORS (and also, as I've already stated: this works on other browsers without errors)
Any help would be appreciated.
EDIT: just to rule it out, I tried using a normal XMLHttpRequest instead of jQuery's "ajax" method, but I get the same exact error.
Hello,
In all of our reports filter pane set to invisible, however suddenly it started to appear in our MVC front end application. This pane is yet invisible if I display report from the portal. What has to be adjusted more to hide it again?
Looking forward for your suggestions!
Hi Together,
i am currently trying to implement a Web Application with Node.JS/Type Skript.
Now i checked a couple of videos and get confused.
Everytime, when a token is requested, a pop up appears where the user has to authorize with microsoft login and passwort.
But if i provide an app, my customers for sure need a "silent login" with no pop up.
Sorry for the strange question. Can i work with the secret key of an application in a Web Aplication, too? Or how is it possible to authorize a app directly? Service Principle and Power Bi Workspace is created.
Thanks for help.
Andy
I spoke with an Architect at Microsoft and they confirmed that my Power BI Admin user account still has to be a member of the group/workspace and dataset that I'm calling those particular APIs for. They were kind enough to point me to this article which details how permissions work in Power BI:
https://www.sqlchick.com/entries/2018/12/1/how-permissions-work-for-a-power-bi-service-administrator
After getting my account added to one of the sample groups and datasets, I was able to call the APIs in my script without getting the 401 error.
Hi
thank your for your fast response.
Meanwhile i was able to find great examples:
https://github.com/microsoft/PowerBI-Developer-Samples
Thank a lot
Hello,
I'm a Power BI user with a pro license, and would like to use the Power BI rest API (https://docs.microsoft.com/en-us/rest/api/power-bi/ ).
My main objective is to use the Dataflow refresh via the API, to automatize the multiple ones I have. I'm planning to use Microsoft Power Automate to easily call these APIs.
From what I understood, it's mandatory to create an app on Azure as described here (https://docs.microsoft.com/en-gb/power-bi/developer/embedded/register-app ).
Unfortunately I can't do it myself, as it's managed by my company IT (I don't have Azure admin rights).
That's where the confusion begins: my company security team and IT don't understand why it's required to create an Azure app, and I have troubles to explain to them.
So, my questions are:
Any clarification on this is welcome! Or if it exists any documentation explaining the why we need to create an Azure app...
Thank you in advance!
I know you cannot share your code, but an example of your code with dummy names would be good to understand how you were able to use the spin wheel. Did you get this from another example on the web?
I have created a customer connector that accesses our web application using OAuth2. I have been able to successfully create a new data source using the connector and get authenticated.
The way the connector works is by hving a navigation table with child navigation tables that query "views" with are just API request with json response objects.
Everything works as expected in Power BI Desktop no matter how many queries I am importing, when I only have a single view/query chosen and publish the report the online report refresh is successful. However, if I add an additional query to be loaded, I get the following error.
{"error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials","pbi.error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"The credentials provided cannot be used for the Assemble_Views source. (Source at https://develop-smoke.internalassemble.com/.)"}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},{"code":"Microsoft.Data.Mashup.CredentialError.DataSourceKind","detail":{"type":1,"value":"Assemble_Views"}},{"code":"Microsoft.Data.Mashup.CredentialError.DataSourcePath","detail":{"type":1,"value":"https://develop-smoke.internalassemble.com/"}},{"code":"Microsoft.Data.Mashup.CredentialError.Reason","detail":{"type":1,"value":"CredentialInvalid"}},{"code":"Microsoft.Data.Mashup.MashupSecurityException.DataSources","detail":{"type":1,"value":"[{\"kind\":\"Assemble_Views\",\"path\":\"https://develop-smoke.internalassemble.com/\"}]"}},{"code":"Microsoft.Data.Mashup.MashupSecurityException.Reason","detail":{"type":1,"value":"CredentialInvalid"}}],"exceptionCulprit":1}}} Table: All Assemble Quantity Properties.
Request ID:31653d81-770f-e5ae-1ada-923203544e7a
Activity ID:31653d81-770f-e5ae-1ada-923203544e7a
I have reached out to Microsoft support and created and issue on Github/DataConnectors, Microsoft support was unable to help and I never got a response to my Github issue. I have been trying to get this working for months now and any help would be greatly appreciated.
I already have done all this steps:
I sucessfully got a Token, but when I try to get the report (client.Reports.GenerateTokenInGroupAsync) I got the next error:
This is my function to get the Token:
This the code trying to get the report:
***If I use the HttpClient Request, I sucessfully get the token and the report. I noted, that in the Post HttpClient Request I'm able to indicate Grant_type="password"
vs when I use the sdk, I noted that automaticaly set the grant_type to "client_credentials". and I get a 401 Error. not sure if that could be the problem.
What else could be failing ? as far as I know I'm following all the documentation.
I also read all these posts:
https://community.powerbi.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/699010