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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Kevin_Gitonga
Helper I
Helper I

AND OPERATOR

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

 

1 ACCEPTED SOLUTION
foodd
Super User
Super User

1 REPLY 1
foodd
Super User
Super User

Closing as duplicate post.   See URL for more information:

 

https://community.fabric.microsoft.com/t5/Desktop/AND-Operator/m-p/381271

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors