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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mjmar025
Helper I
Helper I

Don't Show Visuals Until Selection is Made

Hi everyone,

 

I am building a report that allows users to scan a list of items in a table and then click that item to see more detail related to it. On the left side of the report is the table and on the right are several cards/multi-row cards that display columns & measures for a specific item that is selected on the table. My issue is that when no item is selected these cards will default to whatever sort/aggregation I have set for them. Is there any out of the box solution that would allow me to have these visuals hidden until a selection is made in the table.

 

I am trying to avoid creating specific measures that will default these to blank when nothing is selected. I thouught there may be a better way.

 

Thanks.

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @mjmar025 ,

You may refer to below link to show visual until selection is made:

https://community.powerbi.com/t5/Desktop/Show-blank-when-nothing-is-selected-in-the-slicers/td-p/659...

 

Regards,

Daniel He

Community Support Team _ Daniel He
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

2 REPLIES 2
lafondm
Frequent Visitor

You can use the isfiltered Function to accomplish this. I didn't want all user names to be displayed into the table until a lastname was selected. I used th efollwoing code to trap the selected data and return a list. Take a look at:

 

 

selectedLastname = 
           Var lastname = if(
              isfiltered('table'[LAST_NAME])
              ,SELECTEDVALUE('table'[LAST_NAME])
              ,Blank()
           )
RETURN
         calculate(DISTINCT(
              'table'[LAST_NAME])
              ,filter('table','table'[LAST_NAME]=lastname
               )
              )

 

 Now, the list will not be populated until a lastname is selected.

 

I know this is an older thread, but hopefully might help someone that is searching in the future. 🙂

 

Have FUN!

v-danhe-msft
Employee
Employee

Hi @mjmar025 ,

You may refer to below link to show visual until selection is made:

https://community.powerbi.com/t5/Desktop/Show-blank-when-nothing-is-selected-in-the-slicers/td-p/659...

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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