Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
KleinhansStefan
Frequent Visitor

Hiding Visuals Based On a Measure

We have BI Report Server, and our clients are slowly migrating to our PowerBi plat from. We found that when we adjust the URL clients can see all the data. I have created the below measure and added it to some visuals on the page and some visuals are hidden and some does not work. 
Cards, Barcharts that already have a measure in value, and the data story

IsAuth = IF(

    ISFILTERED(qU[Is]),

    1,

    0

)

I followed some post and created a shape and used conditional formatting based on the measure. So it hides the visual but not only does this disable the interaction with the visual but on the web site once you load the page or refresh the page then there is a blue over lay before it turns to white or transparrent.

zShapeTransparency =
IF(
    [IsAuth] = 0,
    "#FFFFFFFF", -- Set color to black when IsAuth is 1 (fully opaque)
    "#FFFFFF00" -- Set color to fully transparent when IsAuth is 0 (using ARGB format, where FF is the alpha channel for transparency)
)


Is there another way of approcing this?

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.