Forum Discussion

emmetk's avatar
emmetk
Frequent Visitor
6 years ago

Remove Values From Visual Based On Slicer Selection

Hello,

 

I need help hiding values from a visual based on a slicer selection instead of simply zeroing them out. I've provided some examples of my data, results, and desired results below. Any help would be appreciated!

 

I have multiple tables detailing various country level data. In order to simplify filtering across each table, I've employed a handful of reference tables. I've included examples of each below:

 

Example Data Table
CountryCategoryCount
USA150
CAA175
DEA125
FRA100
CAA50
DEA75
USA100
USB175
CAB125
DEB100
FRB50

 

Example Filter Table
CountryCategoryType
USA1
CAA1
DEA1
FRA0
USB0
CAB0
DEB1
FRB1

 

In this case, these tables have a relationship based on the Country fields with one other reference table (composed of only Country values) between them (in order to maintain One to Many relationships). However, whenever I filter on Type, I don't get the results I am looking for.

 

Results, Filter on Type = 1

US250
CA225
DE200
FR0

 

Desired Results, Filter on Type = 1

US250
CA225
DE200

 

The only difference between these results is that FR has been completely removed from the table. How can I get these values removed entirely from the table using slicers only?

2 Replies

  • VasTg's avatar
    VasTg
    Memorable Member

    emmetk 

     

    Based on your sample data, aren't you suppose to get 150 for FR?

  • v-lili6-msft's avatar
    v-lili6-msft
    Community Support

    hi  emmetk 

    You could just create a simple measure

    Measure=CALCULATE( SUM(Count) ) 

    Do not add "+0" in this formula.

     

    Regards,

    Lin