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! It's time to submit your entry. Live now!
Hi,
I am evaluating the below DAX expression
Solved! Go to Solution.
Hi @Mystery
The code you show will yield the same result in every row and it will be TRUE if the table contains that combination anywhere, in any of the rows. Check the syntax for CONTAINS
What do you need? A calculated column that tells you whether that row has the combination (ProductID, Revenue) you show? If so, you can use this for your column:
Column 2 = bi_salesFact[ProductID]="785" && bi_salesFact[Revenue]=68.1975
or this if you were to modify your code to make it work:
Column 2 = contains(CALCULATETABLE(bi_salesFact) ,bi_salesFact[ProductID],"785",bi_salesFact[Revenue],68.1975)
The first version is simpler and more efficient.The second is just for illustrative purposes, but not recommended.
Hi @Mystery
The code you show will yield the same result in every row and it will be TRUE if the table contains that combination anywhere, in any of the rows. Check the syntax for CONTAINS
What do you need? A calculated column that tells you whether that row has the combination (ProductID, Revenue) you show? If so, you can use this for your column:
Column 2 = bi_salesFact[ProductID]="785" && bi_salesFact[Revenue]=68.1975
or this if you were to modify your code to make it work:
Column 2 = contains(CALCULATETABLE(bi_salesFact) ,bi_salesFact[ProductID],"785",bi_salesFact[Revenue],68.1975)
The first version is simpler and more efficient.The second is just for illustrative purposes, but not recommended.
Thanks let me check that out.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 45 | |
| 38 | |
| 26 | |
| 22 |
| User | Count |
|---|---|
| 136 | |
| 117 | |
| 55 | |
| 36 | |
| 30 |