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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Or Logic for multiple fields in filter

In same table, I have two fields with sample value as shown in table. I want to filter data only when

Field1=A OR Fields2 =A.

As understood, the default logic in this case is AND not OR. Please help.

 

Field1Field2
AA
BX
CY
DY

 

 

1 ACCEPTED SOLUTION
AlB
Super User
Super User

Hi @Anonymous 

Create a calculated table:

NewTable =
FILTER ( Table1, Table1[Field1] = "A" || Table1[Field2] = "A" )

 

View solution in original post

2 REPLIES 2
AlB
Super User
Super User

Hi @Anonymous 

Create a calculated table:

NewTable =
FILTER ( Table1, Table1[Field1] = "A" || Table1[Field2] = "A" )

 

Anonymous
Not applicable

@AlB Thanks. I have organizational limitations due to live data source. Is there any way to achieve this only being on level of report without going to data or model?

Just started learning and quite excited. 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.