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
duynk
New Member

Problem when create a measure to display values based on the value that I select in the Filters pane

Hello! I am trying to create a measure to display values based on the value that I select in the Filters pane.

For context, I have 3 tables: A, B, C

Data in table A:

duynk_0-1732090868168.png

Data in table B:

duynk_1-1732090883540.png

Data in table C:

duynk_2-1732090901390.png

Relationship between 3 tables:

duynk_3-1732090960625.png

This is the measure I created to display the value that I selected in filter of column CC in table C:

 

DisplayFilterValue = 
CONCATENATEX(
    FILTERS(C[CC]),
    C[CC],
    ", ",
    C[CC],
    ASC
)

 

When I filter column AA of table A with value a5, CC remains value c1. Then I select value c1 in filter and the measure display c1 correctly:

duynk_4-1732091254517.png

Here is the problem: when I select "Select all", the measure display c1, c2, c3, c4, c5, which is incorrect. It should display c1 because the filter only has c1 value.

duynk_5-1732091403975.png

And then when I deselect c1, it displays c2, c3, c4, c5.

duynk_6-1732091483663.png

Is there any way to create a measure that display values based on the value that I select in the Filters pane correctly? Thanks in advance!

1 ACCEPTED SOLUTION
JoBI
Resolver II
Resolver II

Hello! 

You can try the measure without the FILTERS function, so:

DisplayFilterValue = 
CONCATENATEX(
    C,
    C[CC],
    ", ",
    C[CC],
    ASC
)

FILTERS function according to documentation "Returns the values that are directly applied as filters to columnName ". So even if only c1 is available, because theoretically you have selected ALL, it returns all values.

 

Hope this works for you.

 

View solution in original post

3 REPLIES 3
duynk
New Member

Hello! I am trying to create a measure to display values based on the value that I select in the Filters pane.

For context, I have 3 tables: A, B, C

Data in table A:

duynk_0-1732098120261.png

Data in table B:

duynk_1-1732098137708.png

Data in table C:

duynk_2-1732098153048.png

Relationship between 3 tables:

duynk_3-1732098168307.png

This is the measure I created to display the value that I selected in filter of column CC in table C:

 

 

 

DisplayFilterValue = 
CONCATENATEX(
    FILTERS(C[CC]),
    C[CC],
    ", ",
    C[CC],
    ASC
)

 

 

 

When I filter column AA of table A with value a5, CC remains value c1. Then I select value c1 in filter and the measure display c1 correctly:

duynk_4-1732098198523.png

Here is the problem: when I select "Select all", the measure display c1, c2, c3, c4, c5, which is incorrect. It should display c1 because the filter only has c1 value.

duynk_5-1732098212077.png

And then when I deselect c1, it displays c2, c3, c4, c5.

duynk_6-1732098225087.png

Is there any way to create a measure that display values based on the value that I select in the Filters pane correctly?

My Power BI version is 2.137.1102.0 64-bit (October 2024)

Thanks in advance!

JoBI
Resolver II
Resolver II

Hello! 

You can try the measure without the FILTERS function, so:

DisplayFilterValue = 
CONCATENATEX(
    C,
    C[CC],
    ", ",
    C[CC],
    ASC
)

FILTERS function according to documentation "Returns the values that are directly applied as filters to columnName ". So even if only c1 is available, because theoretically you have selected ALL, it returns all values.

 

Hope this works for you.

 

pdlv
Helper I
Helper I

OMG This issue been a long time.

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.