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
I have a simple DAX formula that i want to use to distinct count the number of customers who have met a certain criteria. I have a table that defines these criteria i.e Tiers I am doing this on power bi and this is the measure that i am using;
MTierB =
var y = SUM('Brand Tiers'[TierB]),
var x = SUM('Brand Tiers'[TierA])
return CALCULATE(DISTINCTCOUNT('Sales By Customers'[CUSTOMER_StoreCode]), KEEPFILTERS(FILTER('Sales By Customers', 'Sales By Customers'[Total Sales in MSU] >= y AND <=x )))I am getting a syntax error. The AND operator is underlined in red and i dont understand why? Please help out
Solved! Go to Solution.
Closing as duplicate post. See URL for more information:
https://community.fabric.microsoft.com/t5/Desktop/AND-Operator/m-p/381271
Closing as duplicate post. See URL for more information:
https://community.fabric.microsoft.com/t5/Desktop/AND-Operator/m-p/381271
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 44 | |
| 40 | |
| 33 | |
| 31 | |
| 23 |
| User | Count |
|---|---|
| 125 | |
| 119 | |
| 90 | |
| 75 | |
| 69 |