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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
viswaaa
Helper III
Helper III

Select all in the slicer

 

Hi All,

I have a Power BI report where I’m using a country slicer and a table (text chart) that displays Country, Sales, and a URL for each country site.

My requirement is:

  1. The text chart should be hidden by default until the user selects a country in the slicer.

  2. When no country is selected, a message (e.g., “Please select a country to proceed”) should appear.

  3. The slicer should also have a “Select All” option so that users can view data for all countries when needed.

    I used the following DAX to control the chart’s visibility:

     

     
    ShowChart = IF ( COUNTROWS ( ALLSELECTED ( Sheet1[Business Area] ) ) < COUNTROWS ( ALL ( Sheet1[Business Area] ) ), 1, 0 )

     

     

    However, the text chart hides even when the user clicks “Select All.”

    To hide the visual borders/headers, I overlaid a card visual with a transparent background using this measure:

     

     
    Make Transparent = IF ( ISFILTERED ( Sheet1[Country] ), "#FFFFFF00", // Transparent "White" )
     

    This works, but since the card visual is on top of the table, users can’t click the country URLs in the text chart.


    What I need:
    Show a “Select All” option in the slicer.
     By default, hide the text chart and display the message “Please select a country to proceed.”
     When “Select All” is selected, show the text chart with all data

     

    Any suggestions on the correct DAX or a better approach to achieve this would be appreciated.

1 ACCEPTED SOLUTION
v-pnaroju-msft
Community Support
Community Support

Thankyou, @amitchandak, for your response.

Hi viswaaa,

We appreciate your query on the Microsoft Fabric Community Forum.

Based on my understanding of the issue, please find attached screenshots and a sample PBIX file that may assist in resolving the matter:
1.When no country is selected.

vpnarojumsft_0-1758744056147.png

2.When India is selected.

vpnarojumsft_1-1758744125359.png

3.When "All countries" is selected.

vpnarojumsft_2-1758744279667.png

We hope the information provided helps to resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.

Thank you.

View solution in original post

2 REPLIES 2
v-pnaroju-msft
Community Support
Community Support

Thankyou, @amitchandak, for your response.

Hi viswaaa,

We appreciate your query on the Microsoft Fabric Community Forum.

Based on my understanding of the issue, please find attached screenshots and a sample PBIX file that may assist in resolving the matter:
1.When no country is selected.

vpnarojumsft_0-1758744056147.png

2.When India is selected.

vpnarojumsft_1-1758744125359.png

3.When "All countries" is selected.

vpnarojumsft_2-1758744279667.png

We hope the information provided helps to resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.

Thank you.

amitchandak
Super User
Super User

@viswaaa , Refer to this blog from exceleratorbi can help

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors