Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to share a Power BI report with your team.
Power BI
PowerBIService.shareReport(reportId, [1]); Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using reportName instead of emailAddress
Using datasetId which is unrelated to sharing
✗ Incorrect
You need to specify the emailAddress of the person you want to share the report with.
2fill in blank
mediumComplete the code to enable collaboration by adding a user to a workspace.
Power BI
workspace.addUser([1], 'Member');
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using workspaceId instead of userEmail
Using reportId which is unrelated here
✗ Incorrect
To add a user for collaboration, you must provide their userEmail.
3fill in blank
hardFix the error in the code to allow report sharing with edit permissions.
Power BI
PowerBIService.shareReport(reportId, userEmail, [1]); Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'read' string instead of boolean
Using false which denies edit rights
✗ Incorrect
Setting the third parameter to true grants edit permissions for collaboration.
4fill in blank
hardFill both blanks to create a dashboard link and set it to allow sharing.
Power BI
dashboard = PowerBIService.createDashboard([1]); dashboard.setSharing([2]);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using false disables sharing
Using unrelated dashboard names
✗ Incorrect
You name the dashboard 'Sales Overview' and enable sharing by setting true.
5fill in blank
hardFill all three blanks to grant a user access, assign role, and notify them.
Power BI
workspace.addUser([1], [2]); PowerBIService.notifyUser([1], [3]);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning 'Admin' role when 'Member' is expected
Not notifying the user by setting false
✗ Incorrect
You add the userEmail as a 'Member' and notify them with true to send the notification.