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

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

Reply
Hubanl
Frequent Visitor

Filter within calculated measure not included in other visuals

I hope someone can explain why the filter within my measure it not included in other visuals. Some sample sales data is added.

 

I created a measure which computes the number of blue items:

Number of blue items =
    CALCULATE(
        SUM(Sales[Amount]),
        Sales[Color] = "Blue"
    )
 
This measure is added to pie chart visual. Now when i click the product 'bike' in the pie chart, this 'filter 'is included in the other visual on the left. However, the filter (Sales[Color] = "Blue"), is not included in the other visual. Why not? Because, i feel like this should work this way.
 
Hubanl_0-1739542434685.png

 

It does work when i apply a filter 'Color = Blue' directly on the pie chart visual

Hubanl_2-1739542714459.png    
 
Hubanl_1-1739542652019.png

Some sample data:

CustomerSaleDateProductAmountColor
A1-1-2020bike3Blue
B1-1-2020helmet1Red
C1-1-2020bike3Red
D1-1-2020glasses1Red
A1-1-2020bike1Red
C1-1-2021helmet3Red
D1-1-2021bike2Blue
A1-1-2022glasses2Blue
E1-1-2022bike1Blue
C1-1-2022helmet4Red
A1-1-2022bike2Blue
B1-1-2023glasses4Blue
F1-1-2023bike1Blue
C1-1-2024helmet3Blue
D1-1-2024bike3Blue
A1-1-2024glasses2Red

 

 

Thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Hubanl 

 

This is by design. The filters defined in measures cannot interact with other visuals. This is because these filters only take effect in the current context of a visual where the measure is placed. While in other visuals, the context is different and independent. 

 

Slicers, filters in Filter Pane and filter interaction between visuals can pass filters on other visuals. These filters can be thought of as external filters. If you want one filter to affect multiple visuals through interactive behavior, we recommend using these external filters. 

 

Tour the report Filters pane - Power BI | Microsoft Learn

vjingzhanmsft_0-1739762229905.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

In the tooltip, you will not see the condition of blue but if you have dragged the same measure to the first visual as well, then the figures should be correct.


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

@Hubanl , Use a slicer for this and select blue 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Well in this case that is probably the best option. However, this is just a simplified example. I got measures with multiple filters and i want it to be interactive with other visuals. Is that possible with a calculated measure?

 

Anonymous
Not applicable

Hi @Hubanl 

 

This is by design. The filters defined in measures cannot interact with other visuals. This is because these filters only take effect in the current context of a visual where the measure is placed. While in other visuals, the context is different and independent. 

 

Slicers, filters in Filter Pane and filter interaction between visuals can pass filters on other visuals. These filters can be thought of as external filters. If you want one filter to affect multiple visuals through interactive behavior, we recommend using these external filters. 

 

Tour the report Filters pane - Power BI | Microsoft Learn

vjingzhanmsft_0-1739762229905.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
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.

Top Solution Authors
Top Kudoed Authors