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
OKBobby
Frequent Visitor

How to Have a Blank Card Visual when No Row in a Table Visual is Selected

I created a small sample project to demonstrate what I'm trying to do here.

 

I have a single table that I'm working from "Projects".  I have one table visual at the top of my report that displays several rows and a card visual below that to display another value from that same table.

 

When I click on a row in the table visual, the card visual updates to display the correct information as expected.

 

I'm trying to figure out how to get that card to not display anything (be blank) when no rows in the table are selected.


I'm new to Power BI and have spent several hours trying to figure this out.  If anyone could help I would greatly appreciate it.

 

Projects Table:

Projects Table.jpg

 

 

 

 

 

 

Projects Power BI Report

Projects Power BI Report.jpg

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@OKBobby ,

 

You can create measure using dax like pattern below:

Result =
IF ( ISFILTERED ( Table[Column] ), Measure, Blank )

 

Community Support Team _ Jimmy Tao

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

@OKBobby ,

You have to try isfiltered or hasonevalue.

Refer :https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

 

Appreciate your Kudos.

Thank you for the reply.

 

I read the linked article and tried to create the measure, but I am receiving an error.  It seems like this should be simple, so I'm sure I'm missing something fundamental.

 

ISFILTERED Measure Error Message.jpg

After playing around with this statement for another 3 hours watching youtube videos and reading other forum posts and how to articles I think I finally figured out how to make this work.

 

Using the information on this forum post I was able to get the statement to work.

 

Thanks for pointing me in the right direction!

 

ISFILTERED Measure Fixed.jpg

 

The card visual now shows "(Blank)" when no row is selected and shows the correct update when a row is selected.

 

Projects Power BI Report - Working No Row Selected.jpgProjects Power BI Report - Working With Row Selected.jpg

 

 

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.