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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
LukeB
Advocate I
Advocate I

Or Filter between 2 dim tables and a fact table

Hello 

I am sure there is a really simple way of creating measure for this but I'm drawing a blank. 

I have a really simple model that looks like the below. 

 

LukeB_0-1684926155893.png

In both Dimcustomer1 & dimcustomer 2 tables I have a vulnerability flag for the customer. 

In the fact table I have a 1 in every row. I have a measure which sums up this row as per the below

LukeB_1-1684926329089.png

 

How do I create another measure which provides me the volume where the vulnerability flag from dimcustomer1 = "yes" OR the vulnerability flag from dimcustomer2 = "yes"?

I have tried the below but it doesn't like me trying to filter across 2 different dims.

LukeB_2-1684926556269.png

 

 

 

1 ACCEPTED SOLUTION
vk_pbi
Resolver II
Resolver II

Try 2 FILTER funcitons inside CALCULATE, should work
Or else create a virtual table using Summarize columns function, wheere you can groupby columns from 2 tables.

 

Let me know if it works

View solution in original post

3 REPLIES 3
vk_pbi
Resolver II
Resolver II

Try 2 FILTER funcitons inside CALCULATE, should work
Or else create a virtual table using Summarize columns function, wheere you can groupby columns from 2 tables.

 

Let me know if it works

Hey 

 

Thanks for the quick response. So it looks like the 2 filters didn't work unless my logic is incorrect

LukeB_0-1684927711627.png


However doing it using SUMMARIZE appeared to do the trick! Thanks.

LukeB_1-1684927963814.png

Just wondered if its possible to do an OR function across 2 different tables using a CALCULATE & a FILTER function or do you always have to go down the root of a SUMMARIZE?

DAX FILTER function can support mullitple criterias but it will going to apply on a single table, it will not work for multiple tables. Like we can apply 

CALCULATE(
    [Total Sales],    
    FILTER( 'Date', OR('Date'[Year] = 2023, 'Date'[Month No] = 4)
    )



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.