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
Praj
Helper I
Helper I

How to get rows which is NOT selected in a visual

Hello Everyone,

I am loooking for a way to gather rows which is not selected in a visual. 

For example, 

 

Below is my dataset which has two columns-User and Event Attended.

 

Praj_0-1669828793442.png

 

I am using a date slicer on column "Event Attended".

Praj_1-1669828981636.png

 

I know whenever I select Q1 in my slicer, the users who are associated with an event during that quarter is displayed in the table like below image however, I am looking for a way to display the users who are not part of Q1. Is there any way to get these user details(cc,ee,ff).

 

Praj_3-1669829304476.png

 

Any approach for this problem is appreciated. 

 

Thanks in advance

Cheers,

Praj

 



1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Praj Try this inverse slicer method: Inverse Selector - Microsoft Power BI Community


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Praj
Helper I
Helper I

Hi @Greg_Deckler ,

Thanks for your approach. The standard selector is woring in my case however, the inverse selector seems to be blank and doesn't show any data. I am using DATE as a slicer.  Below is the code I have modified for my case 

Standard Selector = 
VAR __dept = MAX([User])
VAR __products = VALUES('Date'[Event Attended])
VAR __table = SELECTCOLUMNS(FILTER(ALL('Engagement'),[Event Attended] IN __products),"__dept",[User])
RETURN
IF(__dept IN __table,1,BLANK())
Inverse Selector = 
VAR __dept = MAX(Engagement[User])
VAR __products = VALUES('Date'[Event Attended])
VAR __table = SELECTCOLUMNS(FILTER(ALL('Engagement'),[Event Attended] IN __products),"__dept",[User])
RETURN
IF(__dept IN __table,BLANK(),1)

 

Below is the visuals

Praj_0-1669890430248.png

Praj_1-1669890465642.png

 

I am not sure if this is because I am using date as a slicer.

 

Cheers,
Praj

 

 

Nevermind @Greg_Deckler, The solution worked! I made a small mistake in slicer.

Cheers,

Praj

Greg_Deckler
Super User
Super User

@Praj Try this inverse slicer method: Inverse Selector - Microsoft Power BI Community


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.