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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
TomaszKlakla
New Member

SELECTEDVALUE to filter OR clause

Hi, I have a problem with OR clause and SELECTEDVALUE function, in that case I would like select by condition:
one Month, and by one Symbol OR Common is True:

Filtered = IF(OR('DataTable'[Symbol]=[SelectedSymbol],'DataTable'[Common]=TRUE()),TRUE(),FALSE())

TomaszKlakla_0-1692780840613.png
example file

 

3 REPLIES 3
rrm121812
Helper II
Helper II

Hi TomaszKlakla,

 

When you say filter does not change dynamically, I am assuming when you select a particular value in Symbol Slicer, the table should display correspong TRUE/FALSE. Please let me know if you are looking for some other functionality.

 

In addition to the new measure, I have set the interaction between Slicer - Month and Table to none.

1. Select Month Slicer. Go to Format --> Edit Interaction and set the interaction to none.

rrm121812_0-1692851652997.png

 SelectedValueOR.pbix 

 

Hope this helps.

rrm121812
Helper II
Helper II

Hi,

 

You can write measure instead of a custom column as below:

 

rrm121812_0-1692794085579.png

 

The selected values of Month will show correct values of Filtered. However, you may need to remove the relationship between tables - Month and DataTable if you want entire column to be populated irrespective of filter applied.

 

Please Accept this answer as a solution if it works for you.

Sorry but this not working:
file with your measure
FilteredM doesn't change dynamically 😞

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.