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

(Via API) Set up user Role as Viewer/ make workspace Read Only for all users (except admin)

$
0
0

Hi everybody.

 

The Viewer role has been up for a while now but as far as I know, you can't set it via API.

 

Apparently back in July 2019 this was already going on (ceck out here) but I can't help thinkin it's impossible that such feature is still NOT implemented. I'm begining to think that there's another way to do this that I'm unaware of because it doesn't sound right that this can't be done.

 

I'm totally able to share a workspace with a user via API and set him roles of:

  • Admin
  • Contributor
  • Member

But all of these roles are read/write so it doesn't work for me (and I'm sure for a LOT of other people too). When I try to set the role as "Viewer" via API I get this message:

 

"UnsupportedAccessRight"

 

The funny thing is, if I set the role to VIEWER manually from the powerbi service website, and I make a GET petition to check out the user's role for the workspace I set him up as a viewer, the response is that the user has INDEED the Viewer role, so the role APIwise is there, it exists, and can be seen.

 

So... is there a way to ser a workspace to readOnly=true or similar (another parameter that doesn't seem to work in the POSTs)

 

In the end, what I need is a way to set up ALL my workspaces that are shared with users, and make all those users VIEWERS or equivalent scenarios so my RLS work and users can't access the Datasets or edit the Reports.

 

All of this via API or code (Powershell etc...) because manually doing it is not an option for me.

 

Any ideas? 

 

Many thanks for everything!


Push DataSet API with Service Principle Authentication

$
0
0

The customers of my company's SaaS application want us to push their data from our service to Power BI.

 

I would like to do that from our server directly but I'm running into issues. We've registered an application that requests the Tenant.ReadWrite.All role on the Power BI service and have the authentication flow set the permission to the Application type. That works fine but any call I make with an access token to the Power BI Push DataSet APIs results in a 403:

 

{ "Message": "API is not accessible for application" }

 

I've created a security group in my testing tenant, added the service principle as a member, and set the developer tenant settings to allow members of the security group access to workspaces in Power BI.

 

However I've also read that the Push DataSet APIs only work with "My Workspace" and under service principle authentication it appears that service principles are not allowed to work with "My Workspace."

 

So it seems like this is a dead end. Is there a way for a server-side application to push data to a tenant in Power BI without requiring every user to manually trigger and authorize each request?

Powershell Get-PowerBIWorkspace filter argument

$
0
0

Hi, this seems like it should be simple, but I'm not a Powershell expert so here goes.

I want to be able to pass two filter parameters to the Get-PowerBIWorkspace Powershell cmdlet.  Here's what I've tried:

Get-PowerBIWorkspace -Scope Organization -All -Filter {("tolower(type) eq 'group'") -and ("tolower(state) eq 'active'")}

 This returns a bad request from the API:

Get-PowerBIWorkspace : Operation returned an invalid status code 'BadRequest'

So, can I pass multiple filter criteria using the -filter parameter on this cmdlet?

Thanks! 

PowerBI Admin account REST API Group calls fail with 401, GroupNotAccessible

$
0
0

I'm currently working on a powershell script to gather Power BI audit information for our BI team and export it to CSV so it can be used within Power BI. My SSO account has been assigned the role of Power BI Admin so I can make the relevant REST API calls. Most calls I'm trying to make return data as expected, but any time I try to make a group API call (e.g. api.powerbi.com/v1.0/myorg/groups/*), I get a 401 error. I also get the same error when using the "try it" button on the documentation pages, logging in with my SSO account, then providing the relevant parameters. From the "REST API Try It" page, the headers show "x-powerbi-error-info: GroupNotAccessible" when I get the 401s.

 

In my powershell script, I first call the "Login-PowerBI" cmdlet to set context with my user. The login window appears and I select my sso user account. After that I start making calls. This is an example call that works without error (please excuse my powershell code - I'm no expert):

 

 

 

# get gateways for use in subsequent calls Write-Host "Retrieving gateways..." $gatewayFileName = "C:\temp\gateways.csv" [System.Collections.ArrayList]$gateways = @() $gatewayInfo = Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/gateways" -Method Get | ConvertFrom-Json if ($gatewayInfo) { if ($gatewayInfo[0].value) { foreach ($gw in $gatewayInfo[0].value) { $gateways.Add($gw) } } } $gateways | ForEach-Object {$_}| Export-Csv -Path $gatewayFileName -NoTypeInformation

 

 

 

I get a list of gateways back and I create the file accordingly.  Here's an example call to get the refresh history for a given dataset within a group. This gives me a very generic "One or more errors occurred" error in powershell, but if I use "Resolve-PowerBIError -Last", I can see that the error is actually a 401 (unauthorized): 

 

 

 

Write-Host "Retrieving dataset refresh history..." $dsRefreshHistoryFileName = "C:\temp\dataset_refresh_history.csv" [System.Collections.ArrayList]$dsRefreshHistory = @() foreach ($groupId in $groupDatasets.Keys) { foreach($gds in $groupDatasets["$groupId"]) { $url = "https://api.powerbi.com/v1.0/myorg/groups/$($groupId)/datasets/$($gds.id)/refreshes" $url $histContainer = Invoke-PowerBIRestMethod -Url $url -Method Get | ConvertFrom-Json if ($histContainer) { if($histContainer[0].value) { foreach ($hist in $histContainer[0].value) { $hist | Add-Member -NotePropertyName DatasetId -NotePropertyValue $gds.id $dsRefreshHistory.Add($hist) } } } } } $dsRefreshHistory | ForEach-Object {$_} | Export-Csv -Path $dsRefreshHistoryFileName -NoTypeInformation

 

 

The $groupDatasets variable is a hashtable populated by first retrieving the groups with this API: 

 

 

https://api.powerbi.com/v1.0/myorg/admin/groups?`$expand=dashboards&`$top=$topCount&`$skip=$skipCount

 

 

Then looping through each group ID and making this API call: 

 

 

https://api.powerbi.com/v1.0/myorg/admin/groups/$($group.id)/datasets

 

 

 

This all seems to work as I get group data back from both of those calls.  However I don't appear to be able to use the non-Admin group API calls without the aforementioned error. I don't think my powershell is at fault as I get the same error when using the same URL in the "REST API Try It" links from the documentation.

 

Is my account, with the PowerBI-Admin role, not allowed to make ALL REST API calls, or do I need to have rights to specific groups in order to pull that information?  The documentation calls out the required scope (e.g. "Workspace.Read.All" or "Workspace.ReadWrite.All"), but does having the Power BI admin role not give me that access?  My apologies if I've missed something fundamental here.

 

Thank you for your time!

Office 365 groups vs Power BI workspaces

$
0
0

Hi,
I'm using the Invoke-PowerBIRestMethod cmdlet in Powershell to enumurate the reports in a given workspace.  First, I'm getting the workspaces using the Get-PowerBIWorkspace cmdlet and storing that in a variable:

 

# get a list of all the workspaces in the tenant $workspaces = Get-PowerBIWorkspace -Scope Organization -All -Filter "tolower(type) eq 'group'"

 

Then I'm looping through each workspace to enumerate the reports.

 

# get a list of all reports in the tenant $reports = foreach ($workspace in $workspaces) { if($workspace.State = "Active") { $URL = "https://api.powerbi.com/v1.0/myorg/groups/" + $workspace.Id + "/reports" $reports = Invoke-PowerBIRestMethod -Url $URL -Method GET } }

 

The problem I'm running into is that the Get-PowerBIWorkspaces returns all workspaces in the tenant, including all the automatically created Office 365 groups.  When I pass the workspace ID for one of the O365 groups to the Power BI API to get the reports, I get an error.

Is there any way to programatically filter the workspaces to return *only* actual Power BI workspaces and exclude the O365 groups?

Thanks!

 

power bi report builder

$
0
0

Hi,
It it possible to design the report builder to force a page break if the page land on an even page number?

Thank you

Power bi is very slow to get data

$
0
0

I now use the Power BI API to develop a report program. I get data through my web service, but the amount of data is a bit large. And each user's data is different. After importing the pbix file through the API. Refreshing data is very slow. affecting work. Is there any better solution?

connecting with azure log analytics

$
0
0

I'm trying to connect power bi to log analytics using https://docs.microsoft.com/en-us/azure/azure-monitor/platform/powerbi i am a global admin in the tenancy but no BI permissions i have a seperate partial admin to power bi .
when i input my query it asks for credentials when i try to add credentials i specify my tenancy global admin account as the organisational account but recieve an error Expression.Error: Access to the resource is forbidden.
i also recieve the same when i specify my power BI account
alternatively i have tried using webapi to authenticate but recieve a message of "a web api key can only be specified when a web api key name is provided " but can find no documentation on how to specfiy my key name or its value
any help would be much appreciated 


Power BI Embedded Within Organization

$
0
0

I created a web application to display several report on a screen. The application cycles through 6 embedded report with no issues, the only problem I have is that after 60 minutes the reports stop displaying and I'm asked to re-sign in, once I do it the reports continue to work correctly. This application is meant to be view within my organization therefore I did not use Power BI Embedded rendering services. Is there a way to change or set the time of token expiration?

Bug in the new native hierarchical slicer

$
0
0

I have tried a 3 and 4 level hierarchy in the new native hierarchy slicer and using it with multiple item selection.   I'll start with all items selected, then going through to deselect items i dont want.

 

I've noticed if i only deselect items at level 4, it works fine.  As soon as i then make a deselect something at level 3, it no longer works properly and all items deselected then show up in all other visuals.  It seems to be happeneing when i do deselections at different levels of the hierarchy.  

 

See the video showing the error.  I confirmed it in multiple dashboards.

Azure + Cognitive + twitter sentiment

$
0
0

Hi ALL

 

So we have twitter sentiment analysis been set up using Power Automate+ Power BI + Twitter dev API. Everything was working fine till this month start. However suddenly we started getting the below error Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource" . On futher investigation found out that my Azure subcription is disabled.(free account). However the free account was set up only 2 months ago.

Questions  -

1. How did the Subcription got disabled within 2 months.

2. I read few articles is it true the free azure benfits can be availed for the subcriptions which are in US West Central?

3. If #2 is true ,  there a way wherein we can change the location of the subcription to US west Central.

4. What would be the solution for this issue?

Sending data to on-premises POST (REST API) from Power BI Dashboard

$
0
0

Hi All - Is it possible to click a button (or checkbox etc) from Power BI Dashboard and send a JSON POST data to on-premises REST API?

 

So far, I already have an On-premises Gateway running a REST API and would like to send some data in a JSON format from Power BI dashboard using a button to this API as a REST POST call.

 

Please advise.

 

Thank you.

Custom Visual Tooltip Data Option

$
0
0

Hello,

I have been working on a custom visual and would like to add a tooltip to it, although I can not get the option to appear in the "fields" area, to add data into it. Any help would be appreciated.
capabilities.json 

 

 

{ "objects": {}, "dataRoles": [ { "displayName": "CCFV", "name": "category1", "kind": "Grouping" } ], "tooltips": { "supportedTypes": { "default": true, "canvas": true }, "roles": [ "tooltips" ]}, "dataViewMappings": [ { "conditions": [ { "category1": { "max": 1 } } ], "table": { "rows": { "for": { "in": "category1" } } } } ] }

 

 

 

Image of the editor.

 
 

img.PNG

 

visual.ts (some of it)

 

 

 

"use strict"; import "core-js/stable"; import "../style/visual.less"; import powerbi from "powerbi-visuals-api"; import IVisual = powerbi.extensibility.IVisual; import VisualConstructorOptions = powerbi.extensibility.visual.VisualConstructorOptions; import VisualUpdateOptions = powerbi.extensibility.visual.VisualUpdateOptions; import EnumerateVisualObjectInstancesOptions = powerbi.EnumerateVisualObjectInstancesOptions; import VisualObjectInstanceEnumeration = powerbi.VisualObjectInstanceEnumeration; import IVisualHost = powerbi.extensibility.visual.IVisualHost; import DataView = powerbi.DataView; import VisualTooltipDataItem = powerbi.extensibility.VisualTooltipDataItem; import * as d3 from "d3"; import { createTooltipServiceWrapper, ITooltipEventArgs, ITooltipServiceWrapper, } from "./tooltipServiceWrapper"; type Selection<T extends d3.BaseType> = d3.Selection<T, any, any, any>; export class Visual implements IVisual { private element: HTMLElement; private isLandingPageOn: boolean; private LandingPageRemoved: boolean; private host: IVisualHost; private svg: Selection<SVGElement>; private container: Selection<SVGElement>; private circle: Selection<SVGElement>; private textValue: Selection<SVGElement>; private textLabel: Selection<SVGElement>; // Declare an array list for the line objects private lineOffset: Selection<SVGElement>; private arr = new Array(); private arrDots = new Array(); // Declare as array of integers to hold the segments of the circle private arrSegments = new Array(); private arrOffsetSegments = new Array(); private singleSegment: number; private categorys: number = 17; private CenterarrayOffset_ = new Array(); private LandingPage: Selection<any>; virificationArray: string[]; private tooltipServiceWrapper: ITooltipServiceWrapper; constructor(options: VisualConstructorOptions) { this.element = options.element; this.svg = d3.select(options.element) .append('svg') .classed('circleCard', true); this.host = options.host; this.container = this.svg.append("g") .classed('container', true); this.tooltipServiceWrapper = createTooltipServiceWrapper(this.host.tooltipService, options.element); this.tooltipServiceWrapper.addTooltip(this.container.selectAll('.circleCard'), (tooltipEvent: ITooltipEventArgs<number>) => Visual.getTooltipData(tooltipEvent.data), (tooltipEvent: ITooltipEventArgs<number>) => tooltipEvent.data[0]); }

 

 

 

 

Rendered event not firing in puppeteer evaluate

$
0
0

I am running the following code, but I am never able to see the console log for when the "loaded" event fires when running with headless = false and looking at the console.

await page.evaluate(() => {
return new Promise(resolve => { const models = window['powerbi-client'].models;
const reportContainer = document.getElementByClassName("pbi-div").item(0); const config = { ... }; const report = powerbi.embed(reportContainer, config) report.on('loaded', function () { console.log('loaded report')
resolve(true) }); });
)}

Anyone have any insight as to how to properly get these events?

How to get date that is 7th working days from any specific date

$
0
0

Can someone help me to get the 7th working day (-7) from today in DAX

for eg: if today is 5/13/2020 then it should return 5/4/2020  excluding (5/9 and 5/10 weekend)


Issue parsing text from long XML containing field

$
0
0

I have several fields which has some preamble text followed by a relatively long XML. I need to parse a field out of the XML. In some cases it is working, while in others it is not. 

 

I have tried removing the preamble text and parsing the XML using parse XML, but since only a handful of these fields contain an XML, that got very messy.

 

I'm parsing at a field that is cut off in the preview.  The full XML is attached. I'm trying to parse at "customerCode".

 

Not working: 

Invoice xml received = <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:VertexEnvelope xmlns="urn:vertexinc:o-series:tps:7:0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:vertexinc:o-series:tps:7:0 VertexInc_Envelope.xsd" xmlns:ns1="urn:vertexinc:o-series:tps:7:0"><ns1:Login><ns1:UserName>RENTAL</ns1:UserName><ns1:Password>*******</ns1:Password></ns1:Login><ns1:InvoiceRequest documentDate="2020-01-10" documentNumber="8100000005" transactionId="RI" transactionType="RENTAL"><ns1:Currency isoCurrencyAlpha="USD"/><ns1:Seller><ns1:AdministrativeOrigin taxAreaId="172090440"><ns1:StreetAddress1>631 S. 62nd Street</ns1:StreetAddress1><ns1:City>KANSAS CITY</ns1:City><ns1:MainDivision>KS</ns1:MainDivision><ns1:SubDivision>WYANDOTTE</ns1:SubDivision><ns1:PostalCode>66111</ns1:PostalCode><ns1:Country>USA</n...

 

Working:

PostInvoice response = <?xml version="1.0" encoding="utf-16"?>
<Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header />
<Body>
<VertexEnvelope xmlns="urn:vertexinc:o-series:tps:7:0">
<InvoiceResponse documentDate="2020-05-21" documentNumber="4100000012" transactionId="RC" transactionType="RENTAL">
<Seller>
<AdministrativeOrigin>
<StreetAddress1>631 S. 62nd Street</StreetAddress1>
<City>KANSAS CITY</City>
<MainDivision>KS</MainDivision>
<SubDivision>WYANDOTTE</SubDivision>
<PostalCode>66111</PostalCode>
<Country>USA</Country>
</AdministrativeOrigin>
</Seller>
<SubTotal>200.000</SubTotal>
<Total>216.500</Total>
<TotalTax>16.500</TotalTax>
<LineItem lineItemId="0.00/1.00" lineItemNumber="1" locationCode="100">
<Selle...

 

 

Invoice xml received = <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<VertexEnvelope xmlns="urn:vertexinc:o-series:tps:7:0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:vertexinc:o-series:tps:7:0 VertexInc_Envelope.xsd">
<Login>
<ns1:UserName>RENTAL</ns1:UserName>
<ns1:Password>******</ns1:Password>
</Login>
<InvoiceRequest transactionType="RENTAL" documentNumber="4000136" documentDate="2020-06-03" transactionId="RC">
<Currency isoCurrencyAlpha="USD" />
<Seller>
<AdministrativeOrigin taxAreaId="172090440">
<StreetAddress1>631 S. 62nd Street</StreetAddress1>
<City>KANSAS CITY</City>
<MainDivision>KS</MainDivision>
<SubDivision>WYANDOTTE</SubDivision>
<PostalCode>66111</PostalCode>
<Country>USA</Country>
</AdministrativeOrigin>
</Seller>
<LineItem lineItemId="1/1" lineItemNumber="1" taxDate="2020-06-03" locationCode="100" transactionType="RENTAL">
<Seller>
<Company>US</Company>
<Division>100</Division>
<Department>100</Department>
<PhysicalOrigin taxAreaId="172090440">
<StreetAddress1>631 S. 62nd Street</StreetAddress1>
<City>KANSAS CITY</City>
<MainDivision>KS</MainDivision>
<SubDivision>WYANDOTTE</SubDivision>
<PostalCode>66111</PostalCode>
<Country>USA</Country>
</PhysicalOrigin>
</Seller>
<Customer>
<CustomerCode classCode="100016">100016</CustomerCode>
<Destination taxAreaId="470130000">
<StreetAddress1>2900 12S Quincy St Ste 501c</StreetAddress1>
<City>Arlington</City>
<MainDivision>VA</MainDivision>
<SubDivision/>
<PostalCode>22206-2231</PostalCode>
<Country>USA</Country>
</Destination>
</Customer>
<Product productClass="">12000055720</Product>
<Quantity unitOfMeasure="EA">1</Quantity>
<Freight>0</Freight>
<UnitPrice>34.33</UnitPrice>
<ExtendedPrice>152.03</ExtendedPrice>
<LandedCost>0</LandedCost>
<FlexibleFields>
<FlexibleCodeField fieldId="1">100016</FlexibleCodeField>
<FlexibleCodeField fieldId="2">1003</FlexibleCodeField>
<FlexibleCodeField fieldId="3">D</FlexibleCodeField>
<FlexibleCodeField fieldId="4">D-R-0004000136-20200603</FlexibleCodeField>
<FlexibleCodeField fieldId="5">103096.1000</FlexibleCodeField>
<FlexibleNumericField fieldId="1">2020</FlexibleNumericField>
<FlexibleNumericField fieldId="2">06</FlexibleNumericField>
</FlexibleFields>
</LineItem>
<LineItem lineItemId="1/2" lineItemNumber="2" taxDate="2020-06-03" locationCode="100" transactionType="RENTAL">
<Seller>
<Company>US</Company>
<Division>100</Division>
<Department>100</Department>
<PhysicalOrigin taxAreaId="172090440">
<StreetAddress1>631 S. 62nd Street</StreetAddress1>
<City>KANSAS CITY</City>
<MainDivision>KS</MainDivision>
<SubDivision>WYANDOTTE</SubDivision>
<PostalCode>66111</PostalCode>
<Country>USA</Country>
</PhysicalOrigin>
</Seller>
<Customer>
<CustomerCode classCode="100016">100016</CustomerCode>
<Destination taxAreaId="470130000">
<StreetAddress1>2900 12S Quincy St Ste 501c</StreetAddress1>
<City>Arlington</City>
<MainDivision>VA</MainDivision>
<SubDivision/>
<PostalCode>22206-2231</PostalCode>
<Country>USA</Country>
</Destination>
</Customer>
<Product productClass="">12000923039</Product>
<Quantity unitOfMeasure="EA">1</Quantity>
<Freight>0</Freight>
<UnitPrice>23.69</UnitPrice>
<ExtendedPrice>104.91</ExtendedPrice>
<LandedCost>0</LandedCost>
<FlexibleFields>
<FlexibleCodeField fieldId="1">100016</FlexibleCodeField>
<FlexibleCodeField fieldId="2">1001</FlexibleCodeField>
<FlexibleCodeField fieldId="3">D</FlexibleCodeField>
<FlexibleCodeField fieldId="4">D-R-0004000136-20200603</FlexibleCodeField>
<FlexibleCodeField fieldId="5">103096.1000</FlexibleCodeField>
<FlexibleNumericField fieldId="1">2020</FlexibleNumericField>
<FlexibleNumericField fieldId="2">06</FlexibleNumericField>
</FlexibleFields>
</LineItem>
<LineItem lineItemId="2/1" lineItemNumber="3" taxDate="2020-06-03" locationCode="100" transactionType="RENTAL">
<Seller>
<Company>US</Company>
<Division>100</Division>
<Department>100</Department>
<PhysicalOrigin taxAreaId="172090440">
<StreetAddress1>631 S. 62nd Street</StreetAddress1>
<City>KANSAS CITY</City>
<MainDivision>KS</MainDivision>
<SubDivision>WYANDOTTE</SubDivision>
<PostalCode>66111</PostalCode>
<Country>USA</Country>
</PhysicalOrigin>
</Seller>
<Customer>
<CustomerCode classCode="100016">100016</CustomerCode>
<Destination taxAreaId="470130000">
<StreetAddress1>2900 12S Quincy St Ste 501c</StreetAddress1>
<City>Arlington</City>
<MainDivision>VA</MainDivision>
<SubDivision/>
<PostalCode>22206-2231</PostalCode>
<Country>USA</Country>
</Destination>
</Customer>
<Product productClass="">12000940129</Product>
<Quantity unitOfMeasure="EA">1</Quantity>
<Freight>0</Freight>
<UnitPrice>21.23</UnitPrice>
<ExtendedPrice>94.02</ExtendedPrice>
<LandedCost>0</LandedCost>
<FlexibleFields>
<FlexibleCodeField fieldId="1">100016</FlexibleCodeField>
<FlexibleCodeField fieldId="2">1001</FlexibleCodeField>
<FlexibleCodeField fieldId="3">D</FlexibleCodeField>
<FlexibleCodeField fieldId="4">D-R-0004000136-20200603</FlexibleCodeField>
<FlexibleCodeField fieldId="5">103096.1000</FlexibleCodeField>
<FlexibleNumericField fieldId="1">2020</FlexibleNumericField>
<FlexibleNumericField fieldId="2">06</FlexibleNumericField>
</FlexibleFields>
</LineItem>
<LineItem lineItemId="2/2" lineItemNumber="4" taxDate="2020-06-03" locationCode="100" transactionType="RENTAL">
<Seller>
<Company>US</Company>
<Division>100</Division>
<Department>100</Department>
<PhysicalOrigin taxAreaId="172090440">
<StreetAddress1>631 S. 62nd Street</StreetAddress1>
<City>KANSAS CITY</City>
<MainDivision>KS</MainDivision>
<SubDivision>WYANDOTTE</SubDivision>
<PostalCode>66111</PostalCode>
<Country>USA</Country>
</PhysicalOrigin>
</Seller>
<Customer>
<CustomerCode classCode="100016">100016</CustomerCode>
<Destination taxAreaId="470130000">
<StreetAddress1>2900 12S Quincy St Ste 501c</StreetAddress1>
<City>Arlington</City>
<MainDivision>VA</MainDivision>
<SubDivision/>
<PostalCode>22206-2231</PostalCode>
<Country>USA</Country>
</Destination>
</Customer>
<Product productClass="">12000953557</Product>
<Quantity unitOfMeasure="EA">1</Quantity>
<Freight>0</Freight>
<UnitPrice>31.83</UnitPrice>
<ExtendedPrice>140.96</ExtendedPrice>
<LandedCost>0</LandedCost>
<FlexibleFields>
<FlexibleCodeField fieldId="1">100016</FlexibleCodeField>
<FlexibleCodeField fieldId="2">1003</FlexibleCodeField>
<FlexibleCodeField fieldId="3">D</FlexibleCodeField>
<FlexibleCodeField fieldId="4">D-R-0004000136-20200603</FlexibleCodeField>
<FlexibleCodeField fieldId="5">103096.1000</FlexibleCodeField>
<FlexibleNumericField fieldId="1">2020</FlexibleNumericField>
<FlexibleNumericField fieldId="2">06</FlexibleNumericField>
</FlexibleFields>
</LineItem>
<LineItem lineItemId="3/1" lineItemNumber="5" taxDate="2020-06-03" locationCode="600" transactionType="RENTAL">
<Seller>
<Company>US</Company>
<Division>600</Division>
<Department>600</Department>
<PhysicalOrigin taxAreaId="60050024">
<StreetAddress1>15427 E. Fremont Dr.</StreetAddress1>
<City>ENGLEWOOD</City>
<MainDivision>CO</MainDivision>
<SubDivision>ARAPAHOE</SubDivision>
<PostalCode>80112</PostalCode>
<Country>USA</Country>
</PhysicalOrigin>
</Seller>
<Customer>
<CustomerCode classCode="100016">100016</CustomerCode>
<Destination taxAreaId="470130000">
<StreetAddress1>2900 12S Quincy St Ste 501c</StreetAddress1>
<City>Arlington</City>
<MainDivision>VA</MainDivision>
<SubDivision/>
<PostalCode>22206-2231</PostalCode>
<Country>USA</Country>
</Destination>
</Customer>
<Product productClass="">12000953564</Product>
<Quantity unitOfMeasure="EA">1</Quantity>
<Freight>0</Freight>
<UnitPrice>25</UnitPrice>
<ExtendedPrice>110.71</ExtendedPrice>
<LandedCost>0</LandedCost>
<FlexibleFields>
<FlexibleCodeField fieldId="1">100016</FlexibleCodeField>
<FlexibleCodeField fieldId="2">1001</FlexibleCodeField>
<FlexibleCodeField fieldId="3">D</FlexibleCodeField>
<FlexibleCodeField fieldId="4">D-R-0004000136-20200603</FlexibleCodeField>
<FlexibleCodeField fieldId="5">103040.1390</FlexibleCodeField>
<FlexibleNumericField fieldId="1">2020</FlexibleNumericField>
<FlexibleNumericField fieldId="2">06</FlexibleNumericField>
</FlexibleFields>
</LineItem>
<LineItem lineItemId="4/1" lineItemNumber="6" taxDate="2020-06-03" locationCode="600" transactionType="RENTAL">
<Seller>
<Company>US</Company>
<Division>600</Division>
<Department>600</Department>
<PhysicalOrigin taxAreaId="60050024">
<StreetAddress1>15427 E. Fremont Dr.</StreetAddress1>
<City>ENGLEWOOD</City>
<MainDivision>CO</MainDivision>
<SubDivision>ARAPAHOE</SubDivision>
<PostalCode>80112</PostalCode>
<Country>USA</Country>
</PhysicalOrigin>
</Seller>
<Customer>
<CustomerCode classCode="100016">100016</CustomerCode>
<Destination taxAreaId="470130000">
<StreetAddress1>2900 12S Quincy St Ste 501c</StreetAddress1>
<City>Arlington</City>
<MainDivision>VA</MainDivision>
<SubDivision/>
<PostalCode>22206-2231</PostalCode>
<Country>USA</Country>
</Destination>
</Customer>
<Product productClass="">12000953564</Product>
<Quantity unitOfMeasure="EA">1</Quantity>
<Freight>0</Freight>
<UnitPrice>25</UnitPrice>
<ExtendedPrice>110.71</ExtendedPrice>
<LandedCost>0</LandedCost>
<FlexibleFields>
<FlexibleCodeField fieldId="1">100016</FlexibleCodeField>
<FlexibleCodeField fieldId="2">1001</FlexibleCodeField>
<FlexibleCodeField fieldId="3">D</FlexibleCodeField>
<FlexibleCodeField fieldId="4">D-R-0004000136-20200603</FlexibleCodeField>
<FlexibleCodeField fieldId="5">103040.1390</FlexibleCodeField>
<FlexibleNumericField fieldId="1">2020</FlexibleNumericField>
<FlexibleNumericField fieldId="2">06</FlexibleNumericField>
</FlexibleFields>
</LineItem>
<LineItem lineItemId="5/1" lineItemNumber="7" taxDate="2020-06-03" locationCode="600" transactionType="RENTAL">
<Seller>
<Company>US</Company>
<Division>600</Division>
<Department>600</Department>
<PhysicalOrigin taxAreaId="60050024">
<StreetAddress1>15427 E. Fremont Dr.</StreetAddress1>
<City>ENGLEWOOD</City>
<MainDivision>CO</MainDivision>
<SubDivision>ARAPAHOE</SubDivision>
<PostalCode>80112</PostalCode>
<Country>USA</Country>
</PhysicalOrigin>
</Seller>
<Customer>
<CustomerCode classCode="100016">100016</CustomerCode>
<Destination taxAreaId="470130000">
<StreetAddress1>2900 12S Quincy St Ste 501c</StreetAddress1>
<City>Arlington</City>
<MainDivision>VA</MainDivision>
<SubDivision/>
<PostalCode>22206-2231</PostalCode>
<Country>USA</Country>
</Destination>
</Customer>
<Product productClass="">18000353390</Product>
<Quantity unitOfMeasure="EA">1</Quantity>
<Freight>0</Freight>
<UnitPrice>27.72</UnitPrice>
<ExtendedPrice>122.76</ExtendedPrice>
<LandedCost>0</LandedCost>
<FlexibleFields>
<FlexibleCodeField fieldId="1">100016</FlexibleCodeField>
<FlexibleCodeField fieldId="2">1003</FlexibleCodeField>
<FlexibleCodeField fieldId="3">D</FlexibleCodeField>
<FlexibleCodeField fieldId="4">D-R-0004000136-20200603</FlexibleCodeField>
<FlexibleCodeField fieldId="5">103040.1390</FlexibleCodeField>
<FlexibleNumericField fieldId="1">2020</FlexibleNumericField>
<FlexibleNumericField fieldId="2">06</FlexibleNumericField>
</FlexibleFields>
</LineItem>
<LineItem lineItemId="5/2" lineItemNumber="8" taxDate="2020-06-03" locationCode="600" transactionType="RENTAL">
<Seller>
<Company>US</Company>
<Division>600</Division>
<Department>600</Department>
<PhysicalOrigin taxAreaId="60050024">
<StreetAddress1>15427 E. Fremont Dr.</StreetAddress1>
<City>ENGLEWOOD</City>
<MainDivision>CO</MainDivision>
<SubDivision>ARAPAHOE</SubDivision>
<PostalCode>80112</PostalCode>
<Country>USA</Country>
</PhysicalOrigin>
</Seller>
<Customer>
<CustomerCode classCode="100016">100016</CustomerCode>
<Destination taxAreaId="470130000">
<StreetAddress1>2900 12S Quincy St Ste 501c</StreetAddress1>
<City>Arlington</City>
<MainDivision>VA</MainDivision>
<SubDivision/>
<PostalCode>22206-2231</PostalCode>
<Country>USA</Country>
</Destination>
</Customer>
<Product productClass="">18000421240</Product>
<Quantity unitOfMeasure="EA">1</Quantity>
<Freight>0</Freight>
<UnitPrice>25.25</UnitPrice>
<ExtendedPrice>111.82</ExtendedPrice>
<LandedCost>0</LandedCost>
<FlexibleFields>
<FlexibleCodeField fieldId="1">100016</FlexibleCodeField>
<FlexibleCodeField fieldId="2">1005</FlexibleCodeField>
<FlexibleCodeField fieldId="3">D</FlexibleCodeField>
<FlexibleCodeField fieldId="4">D-R-0004000136-20200603</FlexibleCodeField>
<FlexibleCodeField fieldId="5">103040.1390</FlexibleCodeField>
<FlexibleNumericField fieldId="1">2020</FlexibleNumericField>
<FlexibleNumericField fieldId="2">06</FlexibleNumericField>
</FlexibleFields>
</LineItem>
</InvoiceRequest>
</VertexEnvelope>
</soapenv:Body>
</soapenv:Envelope>

Apply Query Changes loading long time but not yet finish

$
0
0

Hi,

 

Recently when appling query changes, it running very long time until the end no rows figure change. After 2 hours 40 mins some of tables still in waiting status. 

Anyone facing same issue?

2020-05-28 11_38_50-ApplyQueryChanges.png

Actually this is not the only 1 file but another one also facing same issue which is in different server. Apply query changes running very long time, after 15 mins only 1 table show 129 rows.2020-05-28 11_46_36-ApplyQueryChanges2.png

 

Thank you.

 

XioFen

Storing dict outside of visual.ts

$
0
0

Hello,

I have encoded a heap of images as base64 and stored them in a dict, currently, it is making a mess in my visual.ts file, it's super long. Is there any way I can store these in another file and call the variable when needed? I have been banging my head against the wall for a while.

 

dict.PNG

 

Thank You

How to view CurrentUserSessions in Power BI Embedded

$
0
0

I am having a Power BI embedded Capacity in Azure. I have a workspace linked to it and report is embedded in my website.

I was to check if the report is viewed or not at this time before suspending the capacity. Is there any metrics for this.

 

I am able to see a metric like below but donot know how to use this.

"name": "Microsoft.PowerBIDedicated/capacities/providers/Microsoft.Insights/metricDefinitions/read",

{
"name": "CurrentUserSessions",
"displayName": "Current User Sessions",
"displayDescription": "Current number of user sessions established.",
"unit": "Count",
"aggregationType": "Average",
"metricFilterPattern": "^\\b(?i)EM|P\\d$"
},

Thanks in advance,

Dilip

Power Bi ExportToFile returns a pdf with nothing but the Power Bi logo when exporting with bookmarks

$
0
0

Greetings,

I'm currently working on exporting embedded reports through the use of Power Bi REST Api using the exportToFile endpoint. This has been working nicely however, the pdfs always return with the default look of the report regardless of what slicer values the user picked before exporting.

 

After investigating a bit, I concluded that capturing a bookmark using report.bookmarksManager.capture() available through the javascript Api and using it's state property in the ExportToFile request would be the best solution.

 

However the resulting pdf always returns like the image below, what am I doing wrong?

Capture.PNGreturning pdf

Viewing all 18119 articles
Browse latest View live


Latest Images

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