Reply
zoomerin
New Member

Filter on multiple columns

When using CALCULATE, is implicit filter enough or explicit filter is required for multiple columns filtering?

 

I read in a book that explicit filter is required for multiple column filtering, but implicit filter also working in my example. 

Please clarify if there has been any recent update on this. 

Thank you. 

IMG_0117.jpeg

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

Hi @zoomerin ,

 

The first thing you can do is to see from which external display filters the current visual object is subject to according to the funnel in the upper right corner.
Also in calculate, if an implicit filter condition in the formula conflicts with an external filter condition, then the internal filter will override the external filter condition.
For example, in table visual, although it is subject to filters from the date and cate tables, the internal filter of the calculate formula created overrides the filter from the cate table.

 

result_ =
CALCULATE (
    SUM ( 'Table'[Value] ),
    FILTER ( ALL ( Cate[Category] ), Cate[Category] IN { "a", "b", "c" } )
)

 

vkongfanfmsft_2-1711075651080.png

 

Best Regards,
Adamk Kong

 

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-kongfanf-msft
Community Support
Community Support

Hi @zoomerin ,

 

The first thing you can do is to see from which external display filters the current visual object is subject to according to the funnel in the upper right corner.
Also in calculate, if an implicit filter condition in the formula conflicts with an external filter condition, then the internal filter will override the external filter condition.
For example, in table visual, although it is subject to filters from the date and cate tables, the internal filter of the calculate formula created overrides the filter from the cate table.

 

result_ =
CALCULATE (
    SUM ( 'Table'[Value] ),
    FILTER ( ALL ( Cate[Category] ), Cate[Category] IN { "a", "b", "c" } )
)

 

vkongfanfmsft_2-1711075651080.png

 

Best Regards,
Adamk Kong

 

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

 

 

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)