Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi folks,
Maybe someone could help me out in the following situation. I know that I can calculate Red and Green Sales with
CALCULATE ( [SalesAmount], Sales[Color] in {"Red", "Green"} )
But what if I do not know if this should be Red or Green? I keep values to be filtered in a separate table ColorTable, that consists of a few values to be filtered. Tried these, but they don't seem to work:
CALCULATE ( [SalesAmount], Sales[Color] in { ColorTable[Value] } )
CALCULATE ( [SalesAmount], FILTER ( All(Sales), Sales[Color] in { ColorTable[Value] } ) )
What am I missing here?
Thanks.
Solved! Go to Solution.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 35 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 90 | |
| 78 | |
| 66 | |
| 65 |