0
0
Power BIbi_tool~10 mins

Page layout and canvas settings in Power BI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the page size to widescreen in Power BI.

Power BI
pageSettings.PageSize = [1]
Drag options to blanks, or click blank then click option'
APageSizeType.Widescreen
BPageSizeType.Standard
CPageSizeType.Custom
DPageSizeType.Letter
Attempts:
3 left
💡 Hint
Common Mistakes
Using Standard instead of Widescreen changes the aspect ratio.
Using Custom requires additional size settings.
2fill in blank
medium

Complete the code to set the page background color to light gray.

Power BI
pageSettings.Background = [1]
Drag options to blanks, or click blank then click option'
AColor.FromArgb(255, 255, 255, 255)
BColor.FromArgb(255, 255, 0, 0)
CColor.FromArgb(255, 0, 0, 0)
DColor.FromArgb(255, 211, 211, 211)
Attempts:
3 left
💡 Hint
Common Mistakes
Using pure white instead of light gray.
Using red or black colors by mistake.
3fill in blank
hard

Fix the error in the code to set the page orientation to portrait.

Power BI
pageSettings.Orientation = [1]
Drag options to blanks, or click blank then click option'
APageOrientation.Portrait
BPageOrientation.Vertical
COrientation.Portrait
DPageOrientation.Landscape
Attempts:
3 left
💡 Hint
Common Mistakes
Using Landscape instead of Portrait.
Using incorrect enum names like Orientation.Portrait.
4fill in blank
hard

Fill both blanks to set custom page width and height in pixels.

Power BI
pageSettings.CustomPageWidth = [1]
pageSettings.CustomPageHeight = [2]
Drag options to blanks, or click blank then click option'
A1280
B720
C1080
D1920
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping width and height values.
Using standard sizes instead of custom pixel values.
5fill in blank
hard

Fill all three blanks to set page margins: left, top, and right in pixels.

Power BI
pageSettings.Margins.Left = [1]
pageSettings.Margins.Top = [2]
pageSettings.Margins.Right = [3]
Drag options to blanks, or click blank then click option'
A10
B15
C20
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using large values for margins causing layout issues.
Confusing margin positions.