Complete the code to pin a visual to a dashboard in Power BI.
PinVisualToDashboard(visualId, dashboardId, [1])Setting the third parameter to true confirms pinning the visual to the dashboard.
Complete the code to create a dashboard tile with a title in Power BI.
CreateDashboardTile(dashboardId, visualId, { title: [1] })The title must be a string, so it should be enclosed in quotes like 'Sales Overview'.
Fix the error in the code to unpin a tile from a dashboard.
UnpinTileFromDashboard(dashboardId, [1])To unpin a tile, you must specify the tileId, which uniquely identifies the tile.
Fill both blanks to filter a dashboard tile by category and date.
ApplyFilterToTile(tileId, { category: [1], date: [2] })The category filter should be 'Electronics' and the date filter '2024-01-01' as strings.
Fill all three blanks to create and pin a dashboard tile with a title and filter.
const tile = CreateDashboardTile(dashboardId, visualId, { title: [1], filter: [2] });
PinVisualToDashboard(visualId, dashboardId, [3]);The title is 'Monthly Sales', the filter is an object { category: 'Books' }, and true confirms pinning.