Forum Discussion
TadeAde2020
6 years agoNew Member
Count Multiple conditions: DAX
Hi, this my first post in this forum. I have been searching for a solution all day but no luck. Below is my question - On a table I have a column called 'sector' that categorises customers to the se...
edhans
6 years agoCommunity Champion
A table/sample data would be helpful. But the below pseudo code would be how I would approach it with the limited knowledge of what you have:
Total Count =
COUNTX(
FILTER(
Sometable,
sometable[field1] = "this"
&& sometable[field2] = "that"
),
sometable[field1]
)
&& does AND. You can just keep adding other conditions.
Change it to || if you want it to be an OR comparison.
How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum