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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.