cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Blank Text Card until something selected in a slicer

Hi

 

I have a report with multiple slicers and I am using a text card to show the name of the account selected. When the user doesnt select anything it is showing the first account name. How can I show it the way that the text card will stay blank untill the user selects one account. 

 

slicers with card.png

 

 

Thank you 

 

I found similar topics but none of it worked. 

 

Thank you 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Blank Text Card until something selected in a slicer

Hi @Anonymous,

 

Here I made a sample to meet your requirement. We can create a measure like this to get the the result as we excepted.

 

Measure = IF(ISFILTERED(Table1[name]) || ISFILTERED(Table1[Plant]) || ISFILTERED(Table1[VAS type])||ISFILTERED(Table1[date]),FIRSTNONBLANK(Table1[name],Table1[name]),BLANK())

 

Capture.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/axa0yq95rvm8itk/Blank%20Text%20Card%20until%20something%20selected%20in%20a%20slicer.pbix?dl=0

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Regular Visitor

Re: Blank Text Card until something selected in a slicer

Create a measure that shows the FIRST(account), and only when 1 account is selected.

 

something like this (pseudocode, not tested):

Name of account=IF(HASONEVALUE(account);FIRST(account);blank() )

 

Highlighted
Community Support
Community Support

Re: Blank Text Card until something selected in a slicer

Hi @Anonymous,

 

Here I made a sample to meet your requirement. We can create a measure like this to get the the result as we excepted.

 

Measure = IF(ISFILTERED(Table1[name]) || ISFILTERED(Table1[Plant]) || ISFILTERED(Table1[VAS type])||ISFILTERED(Table1[date]),FIRSTNONBLANK(Table1[name],Table1[name]),BLANK())

 

Capture.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/axa0yq95rvm8itk/Blank%20Text%20Card%20until%20something%20selected%20in%20a%20slicer.pbix?dl=0

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Highlighted
Community Support
Community Support

Re: Blank Text Card until something selected in a slicer

Hi @Anonymous,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Highlighted
Regular Visitor

Re: Blank Text Card until something selected in a slicer

hi @v-frfei-msft 

 

this has worked perfectly for me, thanks! 

 

I have made a little change in your expression, because i didn't want " (Blank) " to appear on my card, so here's the expression I used: 

 

Measure = IF(ISFILTERED(Table1[name]) || ISFILTERED(Table1[Plant]) || ISFILTERED(Table1[VAS type])||ISFILTERED(Table1[date]),FIRSTNONBLANK(Table1[name],Table1[name]),"")

 

Thanks ! 🙂

Highlighted
Helper III
Helper III

Re: Blank Text Card until something selected in a slicer

I need to do something similar but just for one of my slicers, Its a GL account slicer and i need to show the name the GL ACCOUNT only when the account is selected.  Can someone please advise?

 

Capture.PNG

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors