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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.