Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

PowerBI Shape Overlay Misalignment on Different Screen Sizes in Profitbase Custom Visual

Hi all,

When using shapes to cover numbers in a Profitbase custom visual, scaling behaves inconsistently. On larger screens, the shapes shift, revealing the numbers I intended to block. I am looking for a way to keep overlays fixed regardless of screen size. Does anyone have a good idea how I can do this?

In this example I have put a border on the shape to identify where it is. Normally, this border is hidden.

Examples:
My resolution:



Larger screen resolution:

 

Any solutions or ideas are welcome! 🙂

  • Hi Anonymous,
    To assist you further, could you please provide sample data that clearly illustrates the issue you're experiencing?

    • Include a small dataset that fully captures the issue (preferably in table format or as a downloadable file, not just a screenshot).
    • Avoid including any sensitive or unrelated information.
    • Also share the expected outcome based on the sample data you provide.

    Need help preparing or uploading sample data? You can refer to this helpful guide:
    How to provide sample data in the Power BI Forum - Microsoft Fabric Community

    This will help us reproduce your scenario accurately and provide a precise solution.

    Best regards,
    Ganesh Singamshetty.

5 Replies

  • jaineshp's avatar
    jaineshp
    Icon for Memorable Member rankMemorable Member

    Hey Anonymous,

    Quick Fix for Shape Overlay Issues:

    • Switch to percentage positioning - Use % values instead of fixed pixels for shape placement
    • Enable "Maintain aspect ratio" in visual format options
    • Set container to "Fit to width" in view settings
    • Use CSS transform: scale() if you can access the visual code

    Alternative approach:

    • Replace shapes with conditional formatting to hide values
    • Or use transparent rectangles with matching background color

    Test tip: Check your overlay on 1920x1080 and 1366x768 resolutions - these cover most business screens.

    Been dealing with similar issues in our reports. The percentage positioning usually solves it without much hassle.

     

    Fixed? ✓ Mark it • Share it • Help others!


    Best Regards,
    Jainesh Poojara | Power BI Developer

  • Hi Anonymous 

     

     I don't think that's the right solution to go with, if there are specific numbers you want to remove we should filter them out! Please provide a sample of data and what you would like to remove from the report and we can provide a better solution. Covering with shapes will always cause issues.

  • v-ssriganesh's avatar
    v-ssriganesh
    Icon for Community Support rankCommunity Support

    Hi Anonymous,
    To assist you further, could you please provide sample data that clearly illustrates the issue you're experiencing?

    • Include a small dataset that fully captures the issue (preferably in table format or as a downloadable file, not just a screenshot).
    • Avoid including any sensitive or unrelated information.
    • Also share the expected outcome based on the sample data you provide.

    Need help preparing or uploading sample data? You can refer to this helpful guide:
    How to provide sample data in the Power BI Forum - Microsoft Fabric Community

    This will help us reproduce your scenario accurately and provide a precise solution.

    Best regards,
    Ganesh Singamshetty.

    • v-ssriganesh's avatar
      v-ssriganesh
      Icon for Community Support rankCommunity Support

      Hello Anonymous,

       

      I am following up to see if you had a chance to review my previous response and provide the requested information. This will enable us to assist you further.

      Thank you.

      • v-ssriganesh's avatar
        v-ssriganesh
        Icon for Community Support rankCommunity Support

        Hello Anonymous,

        Just checking in to see if you had a chance to review my earlier message and share the requested details. Once we have that, we’ll be better equipped to help you further. Thanks.