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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
hellgoingon
Helper II
Helper II

Visual level filters - How to filter 3 fields using And OR operator

Hi all,

 

In my reports (using table to display data), i have 3 fields (A, B and C). I want to filter data like:

(A = 1 or B = 2) and C = 3

 

How can i do that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @hellgoingon,

We are not able to directly use Visual level filters to achieve your requirement. In your scenario, you can create a calculated table using the following formula and then create a table visual using the new created table.

Table = CALCULATETABLE(Table1, FILTER(Table1,(Table1[A]=1||Table1[B]=2)&&(Table1[C]=3)))

1.PNG

For more details, you can review this attached PBIX file.



Thanks,
Lydia Zhang

View solution in original post

3 REPLIES 3
mattchaplin
Frequent Visitor

How would this work if the values in the comparison were dynamic (i.e. user provided) rather than static?

 

A better example for this case may be a fact table of events with columns: Event_Name, Start_Date, End_Date. You have this fact connected to a Date dimension table on either Start_Date or End_Date. In your report, you have a slicer based on the Date.Month where a user can select one or more months, and in the report we want to see all events where the Start_Date OR the End_Date in in the selected months.

Anonymous
Not applicable

Hi @hellgoingon,

We are not able to directly use Visual level filters to achieve your requirement. In your scenario, you can create a calculated table using the following formula and then create a table visual using the new created table.

Table = CALCULATETABLE(Table1, FILTER(Table1,(Table1[A]=1||Table1[B]=2)&&(Table1[C]=3)))

1.PNG

For more details, you can review this attached PBIX file.



Thanks,
Lydia Zhang

It worked. Thanks

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.