Forum Discussion
tolgalogy
3 years agoFrequent Visitor
DAX Formula Calculates Wrong Answer
Hi, I have two table. First table is Location, and columns names are Region Name,Site Name and Quantity. Other table's name is Data, and column names are Date, Site Name, and Value. There are...
- 3 years ago
tolgalogy , Try like
countx(FILTER (Values(Location[Region]), DayRange>2 && ISBLANK(DayRange)=False),[Region])
amitchandak
Super User
3 years agotolgalogy , Try like
countx(FILTER (Values(Location[Region]), DayRange>2 && ISBLANK(DayRange)=False),[Region])
tolgalogy
3 years agoFrequent Visitor
Thank you amitchandak
I used your suggestion, and transform my code as
CALCULATE(
DISTINCTCOUNT (Location[Region],
FILTER (Values(Location[Region]),
DayRange>2 && NOT (ISBLANK(DayRange)
)
)
)