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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
dominikRieder
Frequent Visitor

Filter Table with OR condition on different columns

Hello everyone,

 

I would like to filter a table on its Date-Values and on some Status-Values, e.g:

IDDateStatus
1Dec. 20191
2Jan. 20201
3Feb.20202
4Mar.20202
5Apr. 20203

The user should be able to select a Data-Range with a Slicer Visual and a selection of Multiple Status-Values from a list (maybe a Slicer Visual as well). The resulting Table should contain rows which are either in the data-range or have a status equal to one of the selected status-values

e.g: Date-Range Jan.2020 - Feb.2020 and Status-Values: 1,2 should return table with IDs: 1,2,3,4

 

What would be the best way to achieve that? Any hints are appreciated very much!

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @dominikRieder ,

 

Create a calendar table and a status table to use on your slicers now add the following measure to your data:

Measure =
IF (
    (
        SELECTEDVALUE ( 'Table'[Date] ) <= MAX ( 'Calendar'[Date] )
            && SELECTEDVALUE ( 'Table'[Date] ) >= MIN ( 'Calendar'[Date] )
    )
        || SELECTEDVALUE ( 'Table'[Status] ) IN VALUES ( 'Status'[Status] );
    1;
    BLANK ()
)

 

Now filter you information based on the value 1 of the measure check the PBIX file attach.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@dominikRieder , Not sure I got it.

If you simply put them in a table visual and put slicer it should do

 

If needed add a measure count(Table[ID]) along with other .

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi  @amitchandak ,

 

I also add to read the post twice the trick is that @dominikRieder  want one option or the other using slicers from the table he will get the AND not OR.

 

😀


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @dominikRieder ,

 

Create a calendar table and a status table to use on your slicers now add the following measure to your data:

Measure =
IF (
    (
        SELECTEDVALUE ( 'Table'[Date] ) <= MAX ( 'Calendar'[Date] )
            && SELECTEDVALUE ( 'Table'[Date] ) >= MIN ( 'Calendar'[Date] )
    )
        || SELECTEDVALUE ( 'Table'[Status] ) IN VALUES ( 'Status'[Status] );
    1;
    BLANK ()
)

 

Now filter you information based on the value 1 of the measure check the PBIX file attach.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix, thank you for the quick reply. I will try that out and let you know whether it worked for me 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.