Forum Discussion

KleinhansStefan's avatar
KleinhansStefan
Frequent Visitor
3 years ago

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?

No RepliesBe the first to reply