Skip to main content

Power BI

New

Data with current Layout option to be available while using JavaScript API

Vote (7) Share
Reshma MS's profile image

Reshma MS on 11 Jul 2023 09:36:36

>>Add the Current layout option as well while exporting the data from Javascript API and Embedding in Power bi playground.

Refer Doc:- Export data from a visual in Power BI embedded analytics | Microsoft Learn

Comments (1)
Reshma MS's profile image Profile Picture

Daníel Hjörvar on 05 Feb 2025 12:22:52

RE: Data with current Layout option to be available while using JavaScript API

The exportData method uses two parameters:exportDataType (optional), choose which data you like to export Summarized data or Underlying data.ExportDataType.Summarized, select this option if you want to export data for what you currently see in the visual.ExportDataType.Underlying, select this option if you want to export data for what you see in the visual plus additional data from the underlying dataset.If not provided the data will be exported Summarized. Power BI Team: Could you be so kind and add the third parameter ExportDataType.CurrentLayout as you already have this option when you click the three dots on the visual and select Export Data. Can you please expose the API for that? Thank you!