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
megskilton
Frequent Visitor

Creating table visualisations showing inverse filtering results

I'm wanting to have 3 different slicers and two visualisation tables, the first two slicers will normally filter two tables containing the same data then the third filter will result in one table showing the filtered selection and the other showing results not in the filtered selection (Without including the filtered selection.) 

 

For example 

Capture.JPG

- Firstly Filtering by the region so only showing results from the desired selection, then the sub type and type from that region.

 

e.g. "Australia,Data centres,2"

 

This will make both Table visualisations the same. 

 

I then want to select the slicer 'fruit' and choosing Apple will show me in one table the list of "Australia,Data centres,2" with apples and the other will show the "Australia,Data centres,2" with Banana Pear and Plum (Or any data that isnt apples.)

 

Many Thanks 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @megskilton,

 

>>the third filter will result in one table showing the filtered selection and the other showing results not in the filtered selection (Without including the filtered selection.) 

 

I can use measure to get the filtered records and the inverted result, but I haven't find a way to enable the measure as the source of slicer.

 

filter value:

VALUES(Table[ColumnName])

 

inverted filtered value:

EXCEPT(ALL(Table[ColumnName]), VALUES(Table[ColumnName]))

 

Measure use to display these value:

filtered =
var temp= CONCATENATEX(VALUES(Sheet2[Amount]),[Amount]&",")
return
if(LEN(temp)>0,LEFT(temp,LEN(temp)-1),temp)

 

inverted filtered =
var temp= CONCATENATEX(EXCEPT(ALL(Sheet2[Amount]), VALUES(Sheet2[Amount])),[Amount]&",")
return
if(LEN(temp)>0,LEFT(temp,LEN(temp)-1),temp)

 

 

Regards,

Xiaoxin Sheng

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

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @megskilton,

 

>>the third filter will result in one table showing the filtered selection and the other showing results not in the filtered selection (Without including the filtered selection.) 

 

I can use measure to get the filtered records and the inverted result, but I haven't find a way to enable the measure as the source of slicer.

 

filter value:

VALUES(Table[ColumnName])

 

inverted filtered value:

EXCEPT(ALL(Table[ColumnName]), VALUES(Table[ColumnName]))

 

Measure use to display these value:

filtered =
var temp= CONCATENATEX(VALUES(Sheet2[Amount]),[Amount]&",")
return
if(LEN(temp)>0,LEFT(temp,LEN(temp)-1),temp)

 

inverted filtered =
var temp= CONCATENATEX(EXCEPT(ALL(Sheet2[Amount]), VALUES(Sheet2[Amount])),[Amount]&",")
return
if(LEN(temp)>0,LEFT(temp,LEN(temp)-1),temp)

 

 

Regards,

Xiaoxin Sheng

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

Hello,

 

I've been working with Power BI for a while now, but I do not do any custom measures, however I need to do something similar to what was posted here. What's the correct DAX statement for selecting the inverse?

 

I would like for my slicer to select all values that do not equal (the inverse) the value I select. All my values are text and I'd like for this to show up in a table visual. So for example, my slicer selects retailers within a shopping center that are categorized as "book stores" and I'd like to see which shopping centers DO NOT have a category of book stores.

 

What is the exact measures for this? Table 1 has only categories and Table 2 has categories and several other attributes associated with it. Would I only use 2 measures? If so, could/can you provide what those measures look like and which measures belongs to which table and once I've created the measures where do I drag and drop each (for slicer and table visual.)

 

All suggestions and help is greatly appreciated.


Thank you,

Andy

 

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.