Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello,
In order to Sum the sales amount of blue products OR products that belong to category shoes, I'm using the following DAX expression:
CALCULATE( SUM(Table[SalesAmount]), FILTER( Table, Table[Color] = "Blue" || Table[Category] = "Shoes") )
However, this doesn't work with two different tables (Colors and Categories), like:
CALCULATE( SUM(Table[SalesAmount]), FILTER( Table, Colors[Color] = "Blue" || Categories[Category] = "Shoes") )
Can anyone help?
Thanks!
Solved! Go to Solution.
Hi @webportal
I got this working in a calculated measure. You may just need to add the RELATED function to the OR condition
CALCULATE(
SUM('Table'[SalesAmount]),
FILTER(
'Table',
RELATED(Colors[Color]) = "Blue" ||
RELATED(Categories[Category]) = "Shoes")
)
Hi @webportal
I got this working in a calculated measure. You may just need to add the RELATED function to the OR condition
CALCULATE(
SUM('Table'[SalesAmount]),
FILTER(
'Table',
RELATED(Colors[Color]) = "Blue" ||
RELATED(Categories[Category]) = "Shoes")
)
Yeah, having relationships is effectly giving you a logical table that includes all the columns from the table on the 1 side of the relationship on the table from the many side.
Good to hear it works!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |