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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.