Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.