Bird
Raised Fist0
Power BIbi_tool~10 mins

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

Choose your learning style10 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.

Practice

(1/5)
1. What does the Page Size setting control in Power BI report layout?
easy
A. The font size of all text on the page
B. The color of the report background
C. The number of visuals on the page
D. The width and height of the report page

Solution

  1. Step 1: Understand the role of Page Size

    Page Size defines the dimensions (width and height) of the report page canvas.
  2. Step 2: Differentiate from other settings

    Background color and font size are controlled separately, not by Page Size.
  3. Final Answer:

    The width and height of the report page -> Option D
  4. Quick Check:

    Page Size = width and height [OK]
Hint: Page Size means page dimensions, not colors or fonts [OK]
Common Mistakes:
  • Confusing Page Size with background color
  • Thinking Page Size changes font or visuals count
2. Which of the following is the correct way to set a solid background color for a Power BI report page?
easy
A. Go to Format pane > Page Background > Color and pick a color
B. Use the Page Information pane to select Background Color
C. Right-click on the canvas and choose Set Background Color
D. Change the theme to a solid color theme

Solution

  1. Step 1: Locate background color setting

    Background color is set in the Format pane under Page Background.
  2. Step 2: Confirm correct method

    Go to Format pane > Page Background > Color and pick a color correctly describes going to Format > Page Background > Color to pick a color.
  3. Final Answer:

    Go to Format pane > Page Background > Color and pick a color -> Option A
  4. Quick Check:

    Background color set in Format > Page Background [OK]
Hint: Background color is in Format pane, not Page Information [OK]
Common Mistakes:
  • Trying to set background color from Page Information
  • Right-click menu does not set background color
  • Changing theme affects more than just background
3. If you set the Page Size to 16:9 and the Canvas Background to a light gray color, what will you see on the report page?
medium
A. A square page with white background
B. A page with 4:3 ratio and dark background
C. A rectangular page with 16:9 ratio and a light gray background
D. A page with 16:9 ratio but no background color

Solution

  1. Step 1: Understand Page Size 16:9

    Setting Page Size to 16:9 creates a rectangular canvas with width to height ratio of 16:9.
  2. Step 2: Apply Canvas Background color

    Setting Canvas Background to light gray changes the page background color accordingly.
  3. Final Answer:

    A rectangular page with 16:9 ratio and a light gray background -> Option C
  4. Quick Check:

    Page Size + Background color = rectangular gray page [OK]
Hint: Page Size sets shape; background color fills canvas [OK]
Common Mistakes:
  • Assuming default square page instead of 16:9
  • Ignoring background color setting
  • Confusing 16:9 with 4:3 ratio
4. You tried to set a background image on your Power BI page, but it does not appear. Which of these is the most likely cause?
medium
A. You set the image in the Visualizations pane instead of Format pane
B. The image file is too large or unsupported format
C. You forgot to enable the image by setting Transparency to 100%
D. Background images are not supported in Power BI

Solution

  1. Step 1: Check image file requirements

    Power BI requires supported image formats and reasonable file size for background images.
  2. Step 2: Understand transparency setting

    Transparency 100% means fully transparent (invisible), so it should be less than 100% to see image.
  3. Final Answer:

    The image file is too large or unsupported format -> Option B
  4. Quick Check:

    Image file size/format issues block background image [OK]
Hint: Check image size and format if background image missing [OK]
Common Mistakes:
  • Setting transparency to 100% hides image
  • Trying to set image in wrong pane
  • Believing background images are unsupported
5. You want to create a Power BI report page that fits perfectly on a mobile screen and has a custom background image with 50% transparency. Which steps should you follow?
hard
A. Set Page Size to Mobile layout, add background image in Format pane, set Transparency to 50%
B. Set Page Size to 16:9, add background image in Visualizations pane, set Transparency to 0%
C. Set Page Size to Custom with mobile dimensions, add background image in Format pane, set Transparency to 100%
D. Set Page Size to Mobile layout, add background image in Format pane, set Transparency to 100%

Solution

  1. Step 1: Choose Mobile layout for Page Size

    Power BI offers Mobile layout preset to fit mobile screen dimensions.
  2. Step 2: Add background image in Format pane and set transparency

    Background images are set in Format > Page Background; transparency controls visibility, 50% shows image semi-transparent.
  3. Final Answer:

    Set Page Size to Mobile layout, add background image in Format pane, set Transparency to 50% -> Option A
  4. Quick Check:

    Mobile layout + background image + 50% transparency = correct setup [OK]
Hint: Mobile layout + Format pane background + 50% transparency [OK]
Common Mistakes:
  • Setting transparency to 100% hides image
  • Adding image in Visualizations pane instead of Format pane
  • Using wrong Page Size preset
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard