cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
NKotak_Leecare
Helper III
Helper III

Display in matrix based on selection from a filter

Hi all,

 

I have created three measures following this: Show or Hide a Power BI Visual Based on Selection - Excelerator BI for displaying a message when nothing is selected from the filter and the visual remains empty. However, the filter that I have has values that are there in the visual as well. For example, the name by which I am filtering the visual is also present in the matrix visual itself. So, when I am adding the Hide Visual measure to the visual, it is ignoring it and displays all the name values even when nothing is selected from the filter. 

 

Measure 1: 

Check Filter = ISFILTERED(person[FullName]) -- Returns TRUE when any selection is made
 
Measure 2:
Hide Resident Visual BR =
IF(
    [Check Filter],
    1,
    0
)
 
Measure 3:
Message =
IF (
    [Check Filter],
    -- Check Filtered returns true or false based on selection in slicer
    "",
    --Give me nothing when Check Filtered returns True
    "You must first select a Resident from Resident Filter to see the results."
)
 
The filter and visual snapshots:
 
NKotak_Leecare_0-1681352446386.png
 

Do we have any solution for that?

 

Thank you!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NKotak_Leecare , Try to change measure like

Check Filter = calculate(ISFILTERED(person[FullName]), allselected())

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@NKotak_Leecare , Try to change measure like

Check Filter = calculate(ISFILTERED(person[FullName]), allselected())

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors