Forum Discussion

dia612's avatar
dia612
Helper IV
5 years ago
Solved

Changing visual layer order based on measure value

Hii Community,

 

I have created report which has many visuals and on the top of that I created a datalabel .Now, If  output of a measure = 0 ,the datalabel which is on the top of all will become transparent and we can see the visuals or else the data label will show error message masking all the visuals in the background.

Now the issue is , when the measure output = 0 and the data label becomes transparent,we can see the visuals but cannot play around because the data label in on the front layer.

Is there a way we can send the data label to back when the measure output = 0 and to the front when measure output = 1???

For example,

In this image, I have created 2 visuals one on the top of another.

Now when the measure output =0 , the data label will become transparent so we can see the  background visual  but cannot play around it(if it is filter visual, table or pie chart etc).

If the measure output = 1 , the data label will show the message 

Measure I used to change the background color of the datalabel  

using this idea (https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/ )

Make Transparent =
IF(
[Count] = 0
"#FFFFFF00",
"White"
)
 
Error Message =
IF(
[Count] = 1 ,
"Error",""
)

now can we change the layer order of the data label to back only when the measure output = 0 so that we can play around the visuals??

 

 

  • dia612 , I think you can not change the layer order based on the condition as of now.

     

    Please log an idea for that

3 Replies

  • dia612 , I think you can not change the layer order based on the condition as of now.

     

    Please log an idea for that

    • benji123's avatar
      benji123
      New Member

      So there is no way to change the layer order based on the value of a measure? I am having the same problem as the OP

  • I'm facing a same issue, do you have any ideas or tricks which can help me with it.