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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
bhartisharma_in
Frequent Visitor

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

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.