cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RAdams Regular Visitor
Regular Visitor

Only Show Data in Table or Card when Slicer picked

I have an Employee HR table, which contains Employees personal information (First, Middle, Last, SSN, Hire Date, Beneficiaries, etc.). 

 

I created a Full Name column from the First-Last-SSN. 

 

What I would like to do is have the Full Name in a slicer that controls what is displayed in a Matrix Table (since some employees have multilpe Beneficiaries and other data) and two other Cards to show SSN and Hire Date.  Only thing is I would like everything (Table & Cards) to only display data when an Employee is selected in the Slicer. 

 

I looked into using ISFILTERED but it doesn't work in my scenario. 

 

Anything out there someone may have come across or can someone offer some advice on this? 


Thanks!

R

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator Eric_Zhang
Moderator

Re: Only Show Data in Table or Card when Slicer picked


@RAdams wrote:

I have an Employee HR table, which contains Employees personal information (First, Middle, Last, SSN, Hire Date, Beneficiaries, etc.). 

 

I created a Full Name column from the First-Last-SSN. 

 

What I would like to do is have the Full Name in a slicer that controls what is displayed in a Matrix Table (since some employees have multilpe Beneficiaries and other data) and two other Cards to show SSN and Hire Date.  Only thing is I would like everything (Table & Cards) to only display data when an Employee is selected in the Slicer. 

 

I looked into using ISFILTERED but it doesn't work in my scenario. 

 

Anything out there someone may have come across or can someone offer some advice on this? 


Thanks!

R


@RAdams

Create measures as below and put them to cards and matrix. It shall work.

 

SSN measure =
IF (
    ISFILTERED ( 'Table'[fullName] ) && HASONEVALUE ( 'Table'[fullName] ),
    LASTNONBLANK ( 'Table'[SSN], "" ),
    BLANK ()
)


HireDate measure =
IF (
    ISFILTERED ( 'Table'[fullName] ) && HASONEVALUE ( 'Table'[fullName] ),
    LASTNONBLANK ( 'Table'[HireDate], "" ),
    BLANK ()
)

View solution in original post

3 REPLIES 3
Highlighted
Moderator Eric_Zhang
Moderator

Re: Only Show Data in Table or Card when Slicer picked


@RAdams wrote:

I have an Employee HR table, which contains Employees personal information (First, Middle, Last, SSN, Hire Date, Beneficiaries, etc.). 

 

I created a Full Name column from the First-Last-SSN. 

 

What I would like to do is have the Full Name in a slicer that controls what is displayed in a Matrix Table (since some employees have multilpe Beneficiaries and other data) and two other Cards to show SSN and Hire Date.  Only thing is I would like everything (Table & Cards) to only display data when an Employee is selected in the Slicer. 

 

I looked into using ISFILTERED but it doesn't work in my scenario. 

 

Anything out there someone may have come across or can someone offer some advice on this? 


Thanks!

R


@RAdams

Create measures as below and put them to cards and matrix. It shall work.

 

SSN measure =
IF (
    ISFILTERED ( 'Table'[fullName] ) && HASONEVALUE ( 'Table'[fullName] ),
    LASTNONBLANK ( 'Table'[SSN], "" ),
    BLANK ()
)


HireDate measure =
IF (
    ISFILTERED ( 'Table'[fullName] ) && HASONEVALUE ( 'Table'[fullName] ),
    LASTNONBLANK ( 'Table'[HireDate], "" ),
    BLANK ()
)

View solution in original post

RAdams Regular Visitor
Regular Visitor

Re: Only Show Data in Table or Card when Slicer picked

Awesome. That works! I appreciate your help Eric. 

R

RAdams Regular Visitor
Regular Visitor

Re: Only Show Data in Table or Card when Slicer picked

Eric,

 

Just a follow up question on this. Is there a way I can show multiple rows for what I select in my slicer? 

 

For instance, I can have multiple Beneficiaries for each employee SSN that I would like to show in the Matrix Table. The LastNonBlank only shows the very last result. I saw that there was a AllNoBlanksrow but that doesn't seem to do what I need. 

 

R

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)