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 September 15. Request your voucher.

Reply
powerbiexpert22
Impactful Individual
Impactful Individual

hide chart conditionally

can it be possible that if these is no data in visual 2 then visual2 should be hidden and visual 1 should extend automatically till the end of visual2?

 

powerbiexpert22_0-1716940233692.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @powerbiexpert22 ,

 

It is not possible to automatically resize a visual when one other visual doesn't contain data. A bookmark only captures a state but cannot  determine whether a visual/measure has no data  or not. You might have a better luck with using an html table using the html visual. I'm no html expert so I'd use AI to help me out.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @powerbiexpert22 ,

 

It is not possible to automatically resize a visual when one other visual doesn't contain data. A bookmark only captures a state but cannot  determine whether a visual/measure has no data  or not. You might have a better luck with using an html table using the html visual. I'm no html expert so I'd use AI to help me out.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
powerbiexpert22
Impactful Individual
Impactful Individual

Hi @Anonymous 

 

if there is no data in second card then how it automatically navigate to another bookmark?

Anonymous
Not applicable

Hi @powerbiexpert22 ,

I create two cards. One with number and one with blank.

vyilongmsft_0-1716945665010.png

I think you can use bookmarks. It can let you hide the visual you want to hide.

vyilongmsft_1-1716946089494.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors