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

Card Visual: Leave blank instead of showing First or Last?

I have a card visual that is displaying a text field (Status Summary) so that when a user selects a row from a table visual above the card it will display the status message associated with the selected row/record from the table.

 

When a row from the table is not selected it appears my only option is to display the first or last record from the data set (based on the Visualization->Fields settings).

 

ericdpalmer_0-1673035672026.png


Is there a way to leave the card blank unless an individual record/row is selected from the table visualization?

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @ericdpalmer 

 

You can try the following methods.
Sample data:

vzhangti_0-1673249488436.png

Measure = IF(SELECTEDVALUE('Table'[Index])<>BLANK(),SELECTEDVALUE('Table'[Type]),BLANK())

vzhangti_1-1673249515188.pngvzhangti_2-1673249524233.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @ericdpalmer 

 

You can try the following methods.
Sample data:

vzhangti_0-1673249488436.png

Measure = IF(SELECTEDVALUE('Table'[Index])<>BLANK(),SELECTEDVALUE('Table'[Type]),BLANK())

vzhangti_1-1673249515188.pngvzhangti_2-1673249524233.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Apologies for the delayed response, I will certainly give this a shot!  Thank you!

Ashish_Mathur
Super User
Super User

Hi,

This may be possible with a measure.  Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
BI_Climber
Regular Visitor

Hello Eric,

 

I ran into the same issue a couple of weeks ago.

 

A workaround that fixed this for me was to add an empty row into the dataset which the graph connects to.

 

If you then set the table to display the first record from the data set, it will display the empty row you just added.

 

With this, your card visual should stay empty when nothing is selected and change to the corresponding row in the dataset when you do select something.

 

Hope this helps.

Helpful resources

Announcements
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.