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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Chart not filtering based on a non connected table value

Hi All,

 

I have 3 visuals in my report and one gets filtered based on the Year filter that i have from a unrelated table.

 

But the other two visuals dont get filtered based on this year filter.

 

Any idea how can i make them filtered without having a active connection between table1 and year table?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

@Anonymous 

You can use in values() for unrelated tables with selectedvalue(), e.g.
if selectedvalue.JPG

 

Paul Zheng _ Community Support Team
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

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Assumed year is disconnected table

measure =
calculate(countrows(Table), filter(Table, Table[Year] in values(Year[Year])))


measure =
calculate(countrows(Table), filter(Table, Table[Year] in allselected(Year[Year])))

 

or

 

measure =
calculate(countrows(Table), filter(Table, Table[Year] in values(Year[Year])))

 

want to plot on visual
measure =
calculate(countrows(Table), filter(Table, Table[Year] = max(Year[Year])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  Thanks Amit.

But i think i need a selector kind of measure to apply it on the visual

 

For example, if(selectedvalue( year[year])=query1[year],1,0)

 

but not sure if this is the right way to write

Anonymous
Not applicable

Hi all,

 

any thoughts about it please... please...

Anonymous
Not applicable

 

@Anonymous 

You can use in values() for unrelated tables with selectedvalue(), e.g.
if selectedvalue.JPG

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.