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

Slicer doesn't work because of other measure

Hello!

 

I've been having a problem with a specific visualization that I would need some help with. 

I also have to have a lot of filters within the measures to get the exact data I need.

 

I have a Table1 that looks kind of like this:

 

ID_EMP ID_NUM1ID_NUM2VALUESLICER
110120123,40 
11022023,40 
110320

2,30

 

1104202,102,10
11062112,30 
110721123,30 
110821122,40 
110921200,00 
111022211,00 
11112212,40 
111222123,10 
11132211,20 
210120133,20 
21022032,40 
2103201,20 
2105213,103,10
21062122,10 
210721134,20 
310120122,10 
31022011,30 
3103202,10 
3104202,402,40
31062111,40 
4103202,10 
4104203,203,20
41062113,10 

The slicer column is a measure.

SLICER = IF(CALCULATE([VALUE],(Table1[ID_NUM1]=105 && Table1[ID_NUM2]=21) || (Table1[ID_NUM1]=104 && Table1[ID_NUM2]=21))>0,[VALUE],BLANK())

 

In my visualization I have a table like this:

 

ID_EMPNAMEVALUE_1VALUE_2
1John123,402,10
2Emma133,203,10
3Tom122,102,40
4Bob 3,20

 

VALUE_1 = calculate([value],Table1,Table1[ID_NUM1]=101,Table1[ID_NUM2]=20)
VALUE_2 = calculate([value],Table1,(Table1[ID_NUM1]=105 && Table1[ID_NUM2]=21) || (Table1[ID_NUM1]=104 && Table1[ID_NUM2]=21))

 

I don't want to show rows with missing VALUE_1 data. So I filtered the table that VALUE_1 is not blank.

 

ID_EMPNAMEVALUE_1VALUE_2
1John123,402,10
2Emma133,203,10
3Tom122,102,40

 

Now I need to add a Slicer for the VALUE_2 measure. So I created the slicer measure/column, but when I want to filter my table by the slicer values it shows an empty table, because of the table filter VALUE_1 is not blank. If I disable the filter the slicer kind of works, but it doesn't show the VALUE_1 data, it only shows VALUE_2 data and it shows the employees I don't want included.

 

I know what the problem is but I don't know how to solve it.

 

What I want to achieve is, that I can display four measured values for each employee in a table, one measure can’t be blank, and I want to have a slicer for the second measure, but all values have to be shown in the rows. If it makes sense?

 

Can this be done?

 

Kind regards,

L

 

 

 

0 REPLIES 0

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.

Top Solution Authors