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
harshadrokade
Post Partisan
Post Partisan

Show NA in Card visulisation when Select all selected in slicer

I have a slicer with categories as 2018, 2019, 2020, 2021, 2022, SelectAll.

 

I have a card visulation chart. I want that when I select slicer value as SelectAll, the card value to be shown as 'NA'. This is because we can;t show all years values on card as it should provide only one value on card visualtion.

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@harshadrokade , isfiltered can help

 

if(isfiltered(Table[Year]), selectedvalue(Table[year]) & "", "NA")

 

you can use hasonevalue with isfiltered  - https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

View solution in original post

Thanks sir. I will learn how do we add measure & try to implement the solution u gave. Thanks a lot.

View solution in original post

4 REPLIES 4
harshadrokade
Post Partisan
Post Partisan

Thanks sir. Actually I am very new to BI & so I don't know where exactly I have to put this formula. I will read the entire page you shared & in case I don't understand it, I will get back to you.

@harshadrokade , I have suggested a measure. You can create a new measure, what I suggested in last update

Thanks sir. I will learn how do we add measure & try to implement the solution u gave. Thanks a lot.

amitchandak
Super User
Super User

@harshadrokade , isfiltered can help

 

if(isfiltered(Table[Year]), selectedvalue(Table[year]) & "", "NA")

 

you can use hasonevalue with isfiltered  - https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

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.