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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Keep A Line in Table or Matrix, but Zero Out the Value when Using Slicer

Hello,

 

I have a slicer that's being used to filter out various reasons for my dataset's adjustments. I want to be able to uncheck certain catergories in the slicer without removing the row from my Matrix.

 

In the screenshot, if I drop the "Pending" checkbox, it will remove the whole row that the arrow points too, because the reason for the first "Adj Impact" relates to "Pending".

 

I want to be able to retain that row, but have the value for this column go to 0. Any advice on where to begin?

 

TitanTips_1-1621359556259.png

 

 

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

Hi  @Anonymous  ,

I created the data:

v-yangliu-msft_0-1621576255557.png

Here are the steps you can follow:

1. Create calculated table.

Table 2 = SUMMARIZE('Table (2)','Table (2)'[flag])

2. The relationship between the two tables.

v-yangliu-msft_1-1621576255563.png

3. Create measure.

Amount1 =
var _flag=SELECTCOLUMNS('Table 2',"1",[flag])
return
IF(MAX('Table (2)'[flag]) in _flag,SUMX(FILTER(ALL('Table (2)'),[flag]=SELECTEDVALUE('Table 2'[flag])),[amount]),0)

4. Do not select Pending in Filters.

v-yangliu-msft_2-1621576255567.png

5. Result.

There is no Pending column in the slicer, but it is displayed in the matrix and is 0

v-yangliu-msft_3-1621576255569.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous  ,

I created the data:

v-yangliu-msft_0-1621576255557.png

Here are the steps you can follow:

1. Create calculated table.

Table 2 = SUMMARIZE('Table (2)','Table (2)'[flag])

2. The relationship between the two tables.

v-yangliu-msft_1-1621576255563.png

3. Create measure.

Amount1 =
var _flag=SELECTCOLUMNS('Table 2',"1",[flag])
return
IF(MAX('Table (2)'[flag]) in _flag,SUMX(FILTER(ALL('Table (2)'),[flag]=SELECTEDVALUE('Table 2'[flag])),[amount]),0)

4. Do not select Pending in Filters.

v-yangliu-msft_2-1621576255567.png

5. Result.

There is no Pending column in the slicer, but it is displayed in the matrix and is 0

v-yangliu-msft_3-1621576255569.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.