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

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

Reply
glenyj
Regular Visitor

Filter a visual based on a slicer value for a different field with the same type of data

Hello,

 

Im trying to filter a visual by the value from a slicer.  I'm trying to filter a different field that has the same categories of values.  For example, The slicer is based on "Shape".  Based on the selected value from shape, I want to filter the values in "Shape2" to those shapes only and display a count of the values of "Shape3".  For example, I have filtered the table assuming the user selected square.  Then I would want my visual to show pentagon with a count of 4, heart with a count of 6, circle with a count of 2, and triangle with a count of 2.  I was trying to use a waterfall chart for the shapes and counts.  I tried using an approach I saw in another post (https://community.fabric.microsoft.com/t5/Desktop/How-do-I-get-the-value-from-selected-slicer-and-th... seemed like a similar problem, suggested creating a measure and then using it as a filter on the visual, but that didn't work.  I turned off the filter interaction between the slicer and this particular visual because I want it filtered on a different field than the one the slicer is linked to.

glenyj_0-1721423014458.png

 

 

glenyj_1-1721423391976.png

 

 

glenyj_2-1721423428030.png

 

 

link to pbix file - https://1drv.ms/u/s!AugzWMQZ_6iugTJwn601ASjfVTyH?e=vJo6um
link to testdata - https://1drv.ms/u/s!AugzWMQZ_6iugTO1yGpkZdSC3D_k?e=e62fdG

 

example of what I would like below

 

glenyj_0-1721481353618.png

 

2 ACCEPTED SOLUTIONS

I use your PBIX-File.

How about these results?

- Slicer -

mickey64_0-1721484333349.png

 

- Matrix -

mickey64_1-1721484371502.pngmickey64_2-1721484417484.png

 

View solution in original post

Anonymous
Not applicable

Hi @glenyj ,

 

Canceling an interaction doesn't mean it won't be filtered. So you may need to filter for each of the three visual objects. You can check the results below:

vtianyichmsft_0-1721718023920.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

9 REPLIES 9
Anonymous
Not applicable

Hi @glenyj ,

 

Canceling an interaction doesn't mean it won't be filtered. So you may need to filter for each of the three visual objects. You can check the results below:

vtianyichmsft_0-1721718023920.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

 

Ashish_Mathur
Super User
Super User

Hi,

I cannot download the file.  The screen just keeps flickering.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello @Ashish_Mathur, can you try again now?  I just tried it and it works.  What browser are you using?  I tried it with both Edge and Chrome and it worked.

I am using Edge.  It is still not working.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
mickey64
Super User
Super User

Step 0: I use your data below.

mickey64_0-1721441070170.png

 

Step 1: I duplicate 3 columns.

- Before -

mickey64_1-1721441392426.png

- After -

mickey64_2-1721441422330.png

 

Step 2: I unpivot these 3 columns and click 'Close & Apply'.

mickey64_3-1721441481702.png

 

Step 3: I make a slicer and a table.

- Slicer -

mickey64_4-1721441602416.png

 

- Table -

mickey64_0-1721442010561.png

 

Step 4: I make 2 measures and add 2 Cards for these measures.

    M_Cost1_Sumx = SUMX(

        SUMMARIZE('DATA','DATA'[Shape],'DATA'[Shape2],'DATA'[Shape3],'DATA'[Cost1],'DATA'[Cost2],DATA[Day]),

        (DATA[Cost1]))

    M_Cost2_Sumx = SUMX(

        SUMMARIZE('DATA','DATA'[Shape],'DATA'[Shape2],'DATA'[Shape3],'DATA'[Cost1],'DATA'[Cost2],DATA[Day]),

        (DATA[Cost2]))

mickey64_0-1721470393037.png

 

Hello @mickey64 , thank you for trying to help!  This isn't what I'm trying to do.  I did update my description, which I hope provides more clarity

I use your PBIX-File.

How about these results?

- Slicer -

mickey64_0-1721484333349.png

 

- Matrix -

mickey64_1-1721484371502.pngmickey64_2-1721484417484.png

 

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello @Ashish_Mathur , I have added links to the pbix and data files.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors