Quantcast
Viewing all 48378 articles
Browse latest View live

Change decimal format based on region for Live reports using PowerBI Javascript

I have reports (Live SQL and Live Analysis Service), I have embedded them using PowerBI-Javascript. I would like to show decimal formats based the region of the user. How can I do that?


Re: browse pages without changing the report level filter

Re: Dynamic Row Level Security - Bridge Table

I may be close to a solution but require some help with the DAX.

 

I am have created two Security Roles: City and Continent and I have added in a Level column to my bridge table.

 

I want to filter the DAX LOOKUPVALUE script above to only look at the rows where LEVEL = "City". e.g. something like below

 

[SalesCity] =
LOOKUPVALUE(
'UserOrderBridge'[City] WHERE LEVEL= "City",
'UserList'[UserName],UserPrincipalName(),
'UserOrderBridge'[City] WHERE LEVEL= "City",
Orders[SalesCity]
)

Re: Access to Keboola system through REST API

Hi, after more tests I could get the record that I´m looking for. For now it is working. I will use the Keoola forum as well for some help. Thank you very much for now.

Data becoming "0" after importing to powerbi

Dear,

 

I am importing a data set with 3 columns;

Category, expenses and date

 

It looks like this:

 

Category | Expenses | Date

HR           | 5,000      | may 2017

R&D        | 12,500    | may 2017

Legals      | 10,000    | may 2017

 

 

The csv sheet has in total 1693 rows. 

When I import the data and powerbi previews it, all the data is 100% correct, even when I transform the data and close&apply.

After I've imported it, a few top hundred rows are becoming "0" out of nothing. In excel all these rows of column 2, aka "expenses" are describerd as "numbers". So all the data in this column is described as the same format. I am so confused, why is PowerBI converting these numbers into 0? And just for the first few hundreds, not all of them. Even in powerbi under "data modelling" they are described as the same : "Decimal number". 

 

I have even tried to copy paste this table from the csv sheet into a new sheet and import the new sheet, same result... 

 

Please help!

 

Please help.

 

Re: Update embed token using javascript

Does anybody have an example for this?

I am having the same issue and dont understand how shoul;d i implement the generateEmbedToken function

Re: Power BI embed + token that never expires + javascript SDK

facing the same issu, dont understand how shuld i use the javascript-SDK code

Customization options for embedding a report in Edit mode

When embedding a report in viewMode: Edit, is there any way to customize the editing interface? For example, I'd like to allow the user to edit the embedded report, but not allow them to add certain visual types. I didn't see a way to do something like this in the documentation, but I'd like to confirm if this is possible at all.


Re: How to count the occurrences of each value in a column, including repeated values.

  Did you ever find a solution? I am having the same issue. 

AAD differentiate data for embed report

anyone knows how to differentiate based AAD Token. for instance, I have 100 records for the data set, I want token1 to view first 50 records, and token2 to view second 50 records. the real case will be more complex.

 

I read some article about RLS, and it doesn't apply to our case due to the complexity of permission management. we build new report/modify existing report very often, and we could have 10+ different user permission setting.

Power BI Visual calling into REST APIs (POST method)

I am developing a sample power bi visual after following the article - https://docs.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial

 

I am trying to use the 'request' npm package on the 'visuals.ts' on the constructor and then call into a custom API like the sample code shown below:

 

 console.log('error:', error); // Print the error if one occurred
 console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
 console.log('body:', body); // Print the HTML for the Google homepage.
 });
 
I encounter an error on the 'pbiviz start' phase while trying the above - Can't resolve 'fs' 
 
Hence trying to check if this is allowed and how I could go about looking up the build error

Power BI embedding in Business Central does not filter the report

Hi, 

I've followed the steps provided in the Microsoft Training (Configure Business Central for Excel and Power BI ) to embed Power BI in Business Central but my report does not filter on the prefered items.

I've put the No. of my table in the filter on all pages section bus it doesn't work at all. I've also tested it with the standard report from Microsoft but they also do not seem to work anymore.

Do any of you know how I can solve this problem? 

So I'am able to embed the report in Business Central but the report does not filter on e.g. the purchase quote that was selected. Something that should be possible.

Re: Access to Keboola system through REST API

Hi , my Power Query is working to access the APIs but in the last step, when I need to get the csv file, I don´t know how to create the code to get if from s3 bucket. I can get the Credentials and s3Path information (see below) but not sure how to use them to get the file.

 

            "credentials": { 

                         "AccessKeyId": “ACCESSKEY”, 

                         "SecretAccessKey": “SECRETACCESSKEY”, 

                         "SessionToken": “SESSUIBTOKEN”, 

                         "Expiration": "2020-02-01T06:00:16+00:00” 

             }, 

             "s3Path": { 

                         "bucket": "kbc-sapi-files”, 

                         "key": "exp-30\/123\/table-exports\/out\/c-test\/my_accounts\/1234.csv”

            }

Re: Embed Power BI report into SharePoint Online - Web part options not working

I am also having this exact same problem. Things were working fine up until a week ago.

Whilst the report does show in the web part, you cannot edit the PowerBI web part or choose the options!

Could someone at PowerBI talk to Sharepoint about the issue?

Thanks

Get the workspace of a dataset

Hi,

 

I'm new when it comes to powershell. So far I've installed the MicrosoftPowerBIMgmt module in powershell and signed in.

Using Get-PowerBIDataset -Scope Organization I can get all the datasets in the organization. That's all cool ,but I would like to get more details. What reports are using it? Who manages it?

Is there a good command or script I can use to get more information on a BI report or dataset?



 

 

 


Embedded Subscription

Good afternoon BIyers,

 

The company I work at is interested in embedded reports in their own portal, we have the Premium Subscription but when we tried to Embedded basically we can only do it through the licence Power BI Embedded.

 

I know there's many answers to subjects like this but they all move you to some Microsoft documentation, which in this case is pretty dubious. 

 

Is there any chance someone clarifies which subscription do I need to Embed a Report where the app owns his data. Can I use only the Premium Subscription with a capacity associated or do I have to acquire the Embedded Subscription as well?

 

Thank you in advance.

 

Best Regards,

Duarte Raminhos

Fullscreen not working in IE11 for embedded report when using the Javascript API

Hello,

 

I'm attemtpting to set an embedded report to be in fullscreen mode using the following code:

 

const report = powerbi.get(this.reportContainer); report.fullscreen();

 

This works as expected in Chrome, Firefox and Edge but in IE11 it fails to do anything.

 

I need to support IE11 so does anyone have any ideas on how I can get this working?

 

Thanks.

Map visualizations reccomendation

I am looking to see if anyone has any reccomendations on a visual to use. I am trying to map locations by zip codes which I can do with most map visualizations. I want to layer in and color code a layer representing our territories for sales people by zip code.

Any help or suggestions are appreciated.

Re: PowerBI Embedded report stuck on loading sometimes

Hi - 

 

We're also trying to achieve the embed using JavaScript but somehow it is not working.

 

Can you please share your full JavaScript code with config? Didn't it require to generate a new token when it expires?

 

Much appreciated. 

 

Thank you

Re: programmatic data refresh using api

Hi,

 

I have written the follwing code:

 

function GetAuthToken
{
$adal = "C:\Program Files (x86)\Microsoft SDKs\Azure\Microsoft.IdentityModel.Clients.ActiveDirectory.dll"
$adalforms = "C:\Program Files (x86)\Microsoft SDKs\Azure\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll"
[System.Reflection.Assembly]::LoadFrom($adal) | Out-Null

[System.Reflection.Assembly]::LoadFrom($adalforms) | Out-Null

$redirectUri = "urn:ietf:wg:oauth:2.0:oob"

$resourceAppIdURI = "https://analysis.windows.net/powerbi/api"

$authority = "https://login.microsoftonline.com/common/oauth2/authorize";

$authContext = New-Object "Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext" -ArgumentList $authority

$UserCred = New-Object “Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential” -ArgumentList “username@domain.com“, “pwd”

$authResult = $authContext.AcquireTokenAsync($resourceAppIdURI, $clientId, $UserCred).Result

return $authResult
}

 

I get the following error:

New-Object : Cannot find an overload for "UserCredential" and the argument count: "2".

 

If i replace it with UserPasswordCredential then it throws an error as:

Cannot find an overload for "AcquireTokenAsync" and the argument count: "3".

 

I have installed the latest version (5.2.6) of Microsoft.IdentityModel.Clients.ActiveDirectory.dll and followed steps to register for ClientID in https://dev.powerbi.com/apps

 

Any suggestions how to correct it ?

Viewing all 48378 articles
Browse latest View live


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