Forum Discussion

arichmond's avatar
arichmond
Frequent Visitor
2 years ago
Solved

Send object to the back with dax

I have a page I want to hide for certain users. One work around I have found is to add a square over the data so that it cannot be seen. Here is the code I used to make that square transparent: 

Hide Teacher Data = IF(SELECTEDVALUE('User Master List'[Type]) IN{"Other"}, "#02102D","#FFFFFF00")
 
However, I then lose functionality of the page as it now has a transparent box in front of it when the user is allowed to see it. Is there a dax code I could use to also move that shape to the back of the visuals so that the page becomes interactive and move it to the front if not allowed. Something like: 
Hide Teacher Data = IF(SELECTEDVALUE('User Master List'[Type]) IN{"Other"}, "#02102D","#FFFFFF00") IF(SELECTEDVALUE('User Master List'[Type]) IN{"Other"}, "zorder back,"zorder front")

6 Replies