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

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.

Re: Custom visual tooltip service not working

$
0
0

This is what I was missing when the visual would not show up.

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]); }

 

 

 

 

Re: Print and/or export to PDF from PowerBI Embedded Report

$
0
0

 

I am running embedded powerbi in puppeteer in aws lambda, but I am getting hung up on knowing when the report is done being rendered. How do you wait for the report to finish, so you know its time to create the PDF (or whatever). Currently I am sleeping, but I am trying to find a better solution to that. I did try to hook into the "rendered" event, but I can't seem to get that to fire.

 

I also did hook up to the public preview of this feature, but the restrictions on it are far too great to be viable.

 

Any insight would be greatly appreciated!

 

-Kenny

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?

Re: Ability to trigger an email to people highlighted in a Power BI table

$
0
0

  Where you able to find a solution? I have the same problem. Looking to send email alert to individual emails by filtering the report so they can only see their data. Only solution I found its to create a report for each individual. 

Re: Custom Visual Tooltip Data Option

$
0
0

Hi ,

In your capabilities, you specified a role named "tooltips", but haven't supplied a dataRole for it, so update the dataRoles section of your capabilities as follows:

{ ... "dataRoles": [ { "displayName": "CCFV", "name": "category1", "kind": "Grouping" }, { "displayName": "Tooltips", "name": "tooltips", "kind": "Measure" } ], ... }

(the kind could be GroupingOrMeasure also, as you're using the table data view mapping; I've just gone with Measure for now)

This will then show up a place to add measure fields:

image.png

The sample bar chart has a very similar setup to this.

However if you want to make use of the measure(s) you pass in here, you'll need to update your dataViewMapping, as it will not appear in there and as such will not be accessible to the visual (note that only Dose is present):

image.png

I've modified this as follows:

{ ... "dataViewMappings": [ { "conditions": [ { "category1": { "max": 1 } } ], "table": { "rows": { "select": [ { "for": { "in": "category1" } }, { "for": { "in": "tooltips" } } ] } } } ] ... }

Now, this will be accessible to the visual's data view, e.g.:

image.png

You'll then need to update your view model to include the tooltip data when you map the data view, and ensure that your getTooltipData function iterates through any additional measures you've added so that it knows what to display when the tooltip is rendered - unfortunately you haven't supplied these parts of your code for me to check, but it should be fairly straightforward for you to do if you're already mapping your category1 role into the visual's view model 🙂

Good luck!

Daniel


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)

Re: Use API to set refresh failure notification email address

$
0
0

Hi, Is there any news on having the possibility to update the notification email address when a refresh fails?

we're deploying the datasets using a service principal, and it would be nice to set the notification addresses also with an API call, without using some other tools.

 

thanks

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>

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

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

Re: Custom Visual Tooltip Data Option

$
0
0

Thank you very much, I am currently working on getting it sorted as I get stuck I'll post again for sure.

 

Brenton Collins

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


Re: Print and/or export to PDF from PowerBI Embedded Report

$
0
0

Hi
Firstly kudos to the person/site that set me on the right track: https://www.sambaiz.net/article/132/
Secondly, it's been some time since I did this and we've changed the design from using Node to Pupeteer Sharp

Hope the following helps, it's a code snippet of the funtion that I used to embed the report.  Note it's not code complete nor would I suggest it's production ready! In essence all it does is wrap up the "embed" call in a promise and only then create the pdf.

 

Note: thee is a 'wait' in the code - I don't think I hooked up to the render with my prototype; just assumed that the API woudl render in less than 5secs. I know we did change this to something more robust, but I dont have access to the codebase for it as I no longer work on the project.

exports.exportPdf = async (browser, pbi) => { const magic = Math.floor(Math.random() * 100000); const filename = 'report-' + magic.toString() + '.pdf'; const localPath = '/tmp/' + filename; loggit('>> generated filename: ' + filename); const pageHtml = '<!DOCTYPE html>' + '<html>' + ' <head>' + ' <meta charset="utf-8" />' + ' <title>Printed PDF</title>' + ' <style> #reportContainer { height: 750px; width: 100 %; max-width: 1000px; } </style>' + ' </head>' + ' <body>' + ' <h1>Report</h1>' + ' <div id="reportContainer"></div>' + ' </body>' + '</html>'; loggit('>> new page'); const page = await browser.newPage(); loggit('>> generate filename'); await page.addScriptTag({ path: './powerbi/powerbi.js' }); await page.setContent(pageHtml); loggit('>>>Power BI stuff'); await page.evaluate((a, b, c) => { const models = window['powerbi-client'].models; const config = { type: 'report', tokenType: models.TokenType.Embed, embedUrl: a, accessToken: b, id: c, permissions: models.Permissions.Read, viewMode: models.ViewMode.View, settings: { filterPaneEnabled: false, navContentPaneEnabled: false } }; powerbi.embed(reportContainer, config); }, pbi.EmbedUrl, pbi.EmbedToken.token, pbi.ReportId ); loggit('waiting'); await page.waitFor(5000); loggit('exporting pdf from chromium'); await page.pdf({ path: localPath, format: 'A4', landscape: true }); loggit('reading pdf'); const aws = require('aws-sdk'); const s3 = new aws.S3({ apiVersion: '2006-03-01' }); const fs = require('fs'); const pdf = await new Promise((resolve, reject) => { fs.readFile(localPath, (err, data) => { if (err) return reject(err); resolve(data); }); }); loggit('writing pdf'); await s3.putObject({ Bucket: 'a-stu-bucket', Key: filename, Body: pdf, }).promise(); loggit('closing page'); await page.close(); loggit('returning'); return filename; };

 

Re: Embed report or dashboard with bookmark or filters

Re: Problem with visual object "Image by CloudScope"

$
0
0

Hi  

 

I also had exactly the same issue yesterday.  I am sure I searched the forum for 'Cloudscope' before posting, yet I did not see this post until I marked mine as closed and it popped up in the Recommendations section?!

 

Did you get any where with finding the cause?  

 

Thanks

 

Mark

Re: Cumulative sum

$
0
0

Hi ,

I can't access your link, can you please upload the sample to 'onedrive for business' and share the link here?
Regards,

Xiaoxin Sheng

Re: Problem with visual object "Image by CloudScope"

$
0
0

No, the problem persist...

 

Good luck!

Viewing all 49146 articles
Browse latest View live


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