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
electrobrit
Post Patron
Post Patron

IF, this is filtered, then want what it is filtered to show on card, otherwise, say this

I have a slicer with brands (from a table)
and a card next to it. If nothing is selected, I want the card to say

"Select Brand to view Property Rank and Closing Associate by Brand"

I tried iscrossfiltered and isfiltered and if I select a brand, the brand shows up, if I don't I get an error. So the first part works but I can't get the otherwise (what I want to say to work). 
It says "can't display the visual"
but details of error are this:error.png

Title = If(ISFILTERED(VW_D365Hotels[Brand]), values(VW_D365Hotels[Brand]),
"Select Brand to view Property Rank and Closing Associate by Brand")
1 ACCEPTED SOLUTION
shawne
Resolver I
Resolver I

Try this, as long as the intent is to not make multiple selections it should work...

 

Title =
IF (
COUNTROWS ( VALUES ( 'Table'[Brand] ) ) = 1,
SELECTEDVALUE ( 'Table'[Brand] ),
"Select Brand to view Property Rank and Closing Associate by Brand"
)


View solution in original post

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @electrobrit ,

Have you solved your problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please share your data sample which could reproduce the scenario so that we could help further on it.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
shawne
Resolver I
Resolver I

Try this, as long as the intent is to not make multiple selections it should work...

 

Title =
IF (
COUNTROWS ( VALUES ( 'Table'[Brand] ) ) = 1,
SELECTEDVALUE ( 'Table'[Brand] ),
"Select Brand to view Property Rank and Closing Associate by Brand"
)


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.