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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

filter table in "in" dax formula

Hello, 

 

I am having a problem which seems simple, but I am not finding the solution. I am using this formula to create a column telling me if the values of one column can be found in another table : 

 

in.AR = if(AllTvLinks[TV Link] in DISTINCT(AsRun[TV Link]);1;0)
 
But I want to formula to filter the AsRun table. I need to look only for the observations where AsRun[IsCurrent] = 1. I have tried with the "calculate function" but it doesn't work. 
 
Thanks in advance for any help, 
 
Have a nice day,
 
Simon Laurant
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

You can also try to use 'countrows' and 'filter' functions to filter other records based on current table values.

Flag =
COUNTROWS (
    FILTER (
        TargetTable,
        TargetTable[TV Link] = CurrentTable[TV Link]
            && TargetTable[IsCurrent] = 1
    )
) > 0

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @Anonymous,

You can also try to use 'countrows' and 'filter' functions to filter other records based on current table values.

Flag =
COUNTROWS (
    FILTER (
        TargetTable,
        TargetTable[TV Link] = CurrentTable[TV Link]
            && TargetTable[IsCurrent] = 1
    )
) > 0

Regards,

Xiaoxin Sheng

ChrisMendoza
Resident Rockstar
Resident Rockstar

@Anonymous -

Could you just use LOOKUP like below?

image.png






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.