cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Include Exclude option in Power BI matrix visual

Hi Is ther any way to hide the option for Include/exclude option on matrix visual whe we do a right click on row?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Include Exclude option in Power BI matrix visual

Hi @shilpi_1012,

You can create a measure with unrelated table fields filters and extract selected values to compare with current row contents to return tag.  After these steps, you can use this measure on 'visual level filter' as a filter to achieve include or exclude effect filter effect.

Applying a measure filter in Power BI 

Calculate Table:

 

Selector=Values(Table[Column])

 

Measures:

 

measure filter (Include) =
VAR selected =
    ALLSELECTED ( Selector[Column] )
RETURN
    IF ( SELECTEDVALUE ( Table[Column] ) IN selected, "Y", "N" )

measure filter (Exclude) =
VAR selected =
    ALLSELECTED ( Selector[Column] )
RETURN
    IF ( SELECTEDVALUE ( Table[Column] ) IN selected, "N", "Y" )

 

Notice: if you do not want to add an additional table as the source of measure filter, you can consider defining variables into the measure and compare that variable with current row contents.

Static measure filter (Include) =
VAR selected = {"A","B","C","D"}
RETURN
    IF ( SELECTEDVALUE ( Table[Column] ) IN selected, "Y", "N" )

Static measure filter (Exclude) =
VAR selected = {"A","B","C","D"}
RETURN
    IF ( SELECTEDVALUE ( Table[Column] ) IN selected, "N", "Y" )

Regards,

Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Include Exclude option in Power BI matrix visual

It seems like the default option.  What is the need?

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Community Support
Community Support

Re: Include Exclude option in Power BI matrix visual

Hi @shilpi_1012,

You can create a measure with unrelated table fields filters and extract selected values to compare with current row contents to return tag.  After these steps, you can use this measure on 'visual level filter' as a filter to achieve include or exclude effect filter effect.

Applying a measure filter in Power BI 

Calculate Table:

 

Selector=Values(Table[Column])

 

Measures:

 

measure filter (Include) =
VAR selected =
    ALLSELECTED ( Selector[Column] )
RETURN
    IF ( SELECTEDVALUE ( Table[Column] ) IN selected, "Y", "N" )

measure filter (Exclude) =
VAR selected =
    ALLSELECTED ( Selector[Column] )
RETURN
    IF ( SELECTEDVALUE ( Table[Column] ) IN selected, "N", "Y" )

 

Notice: if you do not want to add an additional table as the source of measure filter, you can consider defining variables into the measure and compare that variable with current row contents.

Static measure filter (Include) =
VAR selected = {"A","B","C","D"}
RETURN
    IF ( SELECTEDVALUE ( Table[Column] ) IN selected, "Y", "N" )

Static measure filter (Exclude) =
VAR selected = {"A","B","C","D"}
RETURN
    IF ( SELECTEDVALUE ( Table[Column] ) IN selected, "N", "Y" )

Regards,

Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

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

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors