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
Anonymous
Not applicable

How to Show a card as Blank/empty if nothing is selected

Hi Everyone,

 

I am using a card that shows the average of a column. It is interactive with the table that has the column. When i click on a item on the table the number on the card changes which is great and what I want. But when i am not selecting any item on the table it just shows the average of the entire column. 

My question is, is there a way to have the card show nothing/empty if nothing is selected from the table and only show value once something is selected on the table.

Below is an example : 

Clumn TextColumn Value
A1
B2
C3
D4

 

Currently, card is showing the average of 2.5 (average of entire Column Value) when nothing is selected. I want the card to show Blank/emplty if nothing is sleceted from the Table ablove and provide a card value when Something is selected in the table, for example if I select A & B together it shoud give the average of 1.5 in the card.

Thanks 

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can use ISFILTERED() or ISCROSSFILTERED() functions to determine if the table is selected.

 

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi, 

You can hide the blank value using a Conditional Formatting rule on the Callout Value. The rule is 'if blank' then select the same color as the card or canvas background. 

I have created a video tutorial on how to create the conditional rule: https://youtu.be/Xsmbfpa4oCA

biancagilly_1-1652137235851.png

 

 

v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can use ISFILTERED() or ISCROSSFILTERED() functions to determine if the table is selected.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Thanks a lot @Toerstad  and @v-eachen-msft , for my case ISFILTERED worked for me and getting exactly what I wanted.

 

Much appreciated

Hi @Anonymous ,

 

Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Toerstad
Advocate I
Advocate I

Hi.

You could create a measure like this, and add it to a card-visual. Then you could select one ore more rows from a table- or matrix-visual and it will return the average of the values of the selected rows.

AverageValue = 
IF(
    ISCROSSFILTERED('Table'[Column Text]),
    AVERAGE('Table'[Column Value]),
    ""
)

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.