cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dia612
Helper IV
Helper IV

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.

1.png

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).

2.png

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

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??

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

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

 

Please log an idea for that



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

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

 

Please log an idea for that



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

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

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors