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

Show table only when value is selected

Hi Everyone,

I'm looking to make a table show only data when a value is highlighted from another table. By default I only want to show a single table which when selecting a single ID, shows the historic details of that ID in a table:

Not highlighted vs highligthed

CanonHarm_0-1676372038095.pngCanonHarm_1-1676372063240.png

 

I want the bottom table in the left to not show any data when nothing is highlighted.

Any help would be greatly appreciated!

 

 

5 REPLIES 5
Revanth_r3
New Member

MAwwad
Solution Sage
Solution Sage

To show the bottom table only when a value is selected in the top table, you can use the "Visual Level Filters" feature in Power BI. Here are the steps:

  1. Select the bottom table in the left.

  2. In the "Visualizations" pane, select the "Visual level filters" option (it looks like a funnel icon).

  3. In the "Filters" pane that appears, click the "Add filter" button.

  4. In the "Add filter" dialog box, select the column that corresponds to the ID in the top table.

  5. Select the "Basic filtering" option.

  6. Select the "is not blank" option.

  7. Click "OK" to close the dialog box and apply the filter.

Now the bottom table will only show data when a value is selected in the top table. When no value is selected, the bottom table will be empty.

Anonymous
Not applicable

Hi Slayer,

 

The ID's are the same field so the Is not Blank does not work for me. I've been able to solve the issue myself though:


Highlight check =


    IF ( SELECTEDVALUE ( FACT[ID] ) = ALLSELECTED ( FACT[ID] )10 )

The logic applies as follows:

I'm using an IF statement to check the selected value from the Top table against the ID's being shown in the bottom table (ALLSELECTED). If true then 1 else 0.

I then filter the table based on the measure and say that the measure has to equal 1. 

 

The only problem I have right now is that the IF statement returns an error when there is no value selected. That part still needs solving

Did you resolve the error

Try to use
IF ( ISFILTERED( FACT[ID] ) ,1,0)

It worked for me. 

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.