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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to show specific values of the region if the region is not selected on the slicer?

Hello!

I have 3 tables:

 

1st Table has only unique values of the regions.

2nd Table has columns: Values, Date, Region

3rd Table has only unique values of the date.

 

Now I have a slicer with Region data from the 1st table as it is: manap_0-1612769290061.png

Next to this slicer, I have a slicer with the date from the 3rd table.

Below I have a matrix table with values.

Now I want to do that if the slicer of the region is selected the table shows appropriate information that belongs to the selected region, but when the slicer is empty the table below must show data that belong to the Region == 'Republic' of the table 2nd.

How can I do that? 

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

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Regions:

a1.png

 

Table2:

a2.png

 

Calendar(a calculated table):

Calendar = CALENDARAUTO()

 

Rg(a calculated table):

Rg = DISTINCT('Table2'[Region])

 

Relationship:

a3.png

 

You may create a measure as below.

Visual Control = 
IF(
    ISFILTERED(Rg[Region]),
    IF(
        SELECTEDVALUE('Table2'[Region]) in DISTINCT(Rg[Region]),
        1,0
    ),
    IF(
        SELECTEDVALUE('Table2'[Region])="Republic",
        1,0
    )
)

 

Then you need to put the measure in the visual level filter and use 'Region' column from 'Rg' table to filter the result.

a4.png

a5.png

 

Best Regards

Allan

 

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

 

View solution in original post

6 REPLIES 6
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Regions:

a1.png

 

Table2:

a2.png

 

Calendar(a calculated table):

Calendar = CALENDARAUTO()

 

Rg(a calculated table):

Rg = DISTINCT('Table2'[Region])

 

Relationship:

a3.png

 

You may create a measure as below.

Visual Control = 
IF(
    ISFILTERED(Rg[Region]),
    IF(
        SELECTEDVALUE('Table2'[Region]) in DISTINCT(Rg[Region]),
        1,0
    ),
    IF(
        SELECTEDVALUE('Table2'[Region])="Republic",
        1,0
    )
)

 

Then you need to put the measure in the visual level filter and use 'Region' column from 'Rg' table to filter the result.

a4.png

a5.png

 

Best Regards

Allan

 

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

 

amitchandak
Super User
Super User

@Anonymous , are these three tables joined?

 

Try like

if(isfiltered(region[region]), [measure], calculate([measure], filter(Region ,region[region] = "Republic")))

 

 

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
Anonymous
Not applicable

@amitchandak What do you mean by "joined"? The tables have relation one (Table 1 and 3)to many (Table 3).

 

What do you mean by " [measure]"?

@Anonymous , measure is any measure or calculation you want to have there

examples

if(isfiltered(region[region]), countrows(Table2), calculate( countrows(Table2), filter(Region ,region[region] = "Republic")))

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
Anonymous
Not applicable

@amitchandak I implemented your formula, but I am getting an only a number of selections.

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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