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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

DAX Help - calculate filter table1[column] = table2[column]

Hello,

I can't find a solution for my dax Formula. I want to do :

 

CALCULATE(
  COUNT(TABLE1[COLUMN.A]),

  TABLE1[COLUMN.B] = TABLE2[COLUMN.B]

)

 

I have a error at the "=" filter, how to write it ?

Thanks for advice.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can try a measure like

 

CALCULATE(
  COUNT(TABLE1[COLUMN.A]),

  TABLE1[COLUMN.B]  in values( TABLE2[COLUMN.B])

)

 

or try  treatas

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You can try a measure like

 

CALCULATE(
  COUNT(TABLE1[COLUMN.A]),

  TABLE1[COLUMN.B]  in values( TABLE2[COLUMN.B])

)

 

or try  treatas

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

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
Anonymous
Not applicable

Thanks you !

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors