Skip to main content

Power BI Developer community August 2019 update

Headshot of article author Amit Shuster

This blog post covers the latest updates for the Power BI Developer community. Donโ€™t forget to check out ourย last developer blog post, if you havenโ€™t done so already.

Here is the list of updates for this month:

Embedded analytics

AUTOMATION & LIFE-CYCLE MANAGEMENT

Track Power BI content consumption with audit logs

Query caching for embedded reports and dashboards

EMBED CAPABILITIES

Sort visuals using an API is now available

Filters APIs now supports Top N filter type

 

Power BI Visuals Platform

Aboutย feature

 

Come and meet us!

 

Power BIย Embedded

AUTOMATION & LIFE-CYCLE MANAGEMENT

Track Power BI content consumption with audit logs

Knowing whoย takesย what action on which item in your Power BI tenant can be criticalย toย helping your organizationย meet compliance and governance standards. Use Power BI auditing to auditย userย actions, like “View Report” and “View Dashboard”.

A new field called โ€œConsumptionMethodโ€ was added,ย toย give the tenant admin information about the method in which Power BI reports, dashboards and tiles are consumed within his organization.

โ€œConsumptionMethodโ€ field was addedย to the following audit activities:

  • Viewedย Powerย BI dashboard
  • Viewed Power BI report
  • Viewed Power BI tile

Possible values are:

  • Embedding for your customers
  • Embedding for your organization
  • Power BIย mobile
  • Power BIย web
  • Simplified embedding

No additional action is required for the โ€œConsumptionMethodโ€ to appear in the audit activities mentioned above.

Learn more about audit logs in Power BI

Query caching for embedded reports and dashboards

Query caching speeds up contentย renderingย by caching previously used query results.ย Query caching is now available for embedded reports andย embedded dashboardsย backed by Power BI Premium or Power BI Embeddedย and is an additional performance improvement option in addition to the improved render performance options previously published.

For reports, controlling query caching is done on the dataset settings page in the Power BI service.

Learn more about query caching in Power BI

 

EMBEDย CAPABILITIESย 

Sort visuals using an API is now available

In Power BIย you canย sort a visualย by differentย columns/measures.ย By changing how you sort a visual, you can highlight the information you want to convey.

‘Sortย visualย byโ€™ย APIย is nowย available,ย andย can be usedย to sort a single visual by one of itsย columns/measuresย and control the direction of the sort.

For example,ย afterย creating and personalize report visuals programmatically with Visual Authoring API, you can choose how the visual will be sorted and displayed to the users.

Below is a code snippet,ย toย sort a visual by โ€œTotal Category Volumeโ€ measure, descending:

const request = {
ย  ย  orderBy: {
ย  ย  ย  ย  table: "SalesFact",
ย  ย  ย  ย  measure: "Total Category Volume"
ย  ย  },
ย  ย  direction: 2 // models.SortDirection.Descending
};
visual.sortBy(request);

Learn more about sort visual by API

Filters APIsย now supportsย Top N filterย type

Whenย analysingย a dataset, you often want to look at categorical data and understand which are your best categories, and which are your worst.

Filteringย by the Top or Bottom number of categories,ย sortedย by a specific measureย is now available by using the filters APIs with Top N filter type.

For example, to show theย topย 5ย companies byย total units:

constย topNFilterย =ย {
ย  ย  $schema: "https://powerbi.com/product/schema#topN",
ย  ย  table:ย "Manufacturer",
ย  ย  column:ย "Manufacturer",
ย  ย  $schema: "https://powerbi.com/product/schema#column"},
ย  ย  orderBy: {
ย  ย  ย  ย  table: "SalesFact",
ย  ย  ย  ย  measure: "Total Units",
ย  ย  ย  ย  $schema: "https://powerbi.com/product/schema#measure"
ย  ย  },
ย  ย  operator:ย "Top",
ย  ย  itemCount:ย 5,
ย  ย  filterType:ย 5ย //ย pbi.models.FilterType.TopN
};
report.setFilters([topNFilter]);

Learn more about filtersย with JavaScript SDK

 

 

If youโ€™re puzzled or run into any issues, be sure to check our resources that can help you:

  • โ€˜Troubleshootingโ€™ doc to help you bypass all the obstacles on your way to building a great app.
  • FAQ doc to answer all your questions regarding the product, licensing, and Azure capacities.
  • Community forum for developers, to seek answers or ask any other questions you have.

 

Power BI Visuals Platform

Aboutย feature

As ofย Septemberย Power BI Desktop release, report authors may click on any visual in the visualization pane to see an About dialog with more information on the visual.

Users will be able to see things such as the visualโ€™s id, version number, and Source (e.g. AppSource, Organizational store).

If you create private visuals for your customers, make sure to fill properly the appropriate fields inย pbiviz.jsonย file so the About dialog of those private visuals will display relevant data.

Find below the fields that are displayed in the About dialog:

"visual": {
ย  ย  "name": "chicletSlicer",
ย  ย  "displayName": "ChicletSlicerย 1.6.1",ย Displayed as visual Name
ย  ย  "guid": "ChicletSlicer1448559807354",ย Displayed as id
ย  ย  "visualClassName": "ChicletSlicer",
ย  ย  "version": "1.6.1.1",ย Displayed
ย  ย  "description": "Use this slicer to display image and/or text buttons that act as an in-canvas filter. Define additional properties for the layout & selection to customize this slicer to meet your specific needs",
ย  ย  "supportUrl":ย "https://community.powerbi.com",ย Displayed
ย  ย  "gitHubUrl":ย "https://github.com/Microsoft/PowerBI-visuals-ChicletSlicer"
},
"apiVersion": "1.13.0",
"author": {
ย  ย  "name": "Microsoft",ย Displayed as publisher
ย  ย  ย "email": "pbicvsupport@microsoft.com"
},

 

 

As always, feel free to use all the communication channels at your disposal to connect with our team, share your thoughts and ask questions:

 

Come and meet us!

Power BI Embedded at Microsoftย Igniteย on a 45 minutes breakout session:

โ€œWhatโ€™s new and what’s next in Power BI embedded analyticsโ€

Learn about the latest innovations in Power BI embedded analytics as well as the upcoming roadmap. Highlights include updates to authentication, application lifecycle management, enterprise reporting support, embedded AI and more!

Be sure not to miss it!

 

 

Thatโ€™s all for this post. We hope you found it useful. Please continue sending us your feedback โ€“ itโ€™s very important for us! Have an amazing feature in mind? Please share it or vote in our Power BI Embedded Analytics Ideas forum, or our Custom Visuals Ideas forum.